Package com.tangosol.net
Enum Class Coherence.Mode
- All Implemented Interfaces:
Serializable,Comparable<Coherence.Mode>,Constable
- Enclosing class:
- Coherence
An enum representing the different modes that a
Coherence
instance can run in.-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionTheCoherenceinstance should run as a non-cluster member Extend client.TheCoherenceinstance should run as a non-cluster member Extend client, configured with a fixed address and port.TheCoherenceinstance should run as a cluster member client.TheCoherenceinstance has been created from a gar.TheCoherenceinstance should run as a non-cluster member gRPC client.TheCoherenceinstance should run as a non-cluster member gRPC client, configured with a fixed address and port. -
Method Summary
Modifier and TypeMethodDescriptionstatic Coherence.ModefromClientName(String sClient) Return theCoherence.Modefor the given client name.Returns the defaultcoherence.clientproperty.static Coherence.ModeReturns the enum constant of this class with the specified name.static Coherence.Mode[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
Client
TheCoherenceinstance should run as a non-cluster member Extend client. The proxy will be discovered using the name service. -
ClientFixed
TheCoherenceinstance should run as a non-cluster member Extend client, configured with a fixed address and port. -
ClusterMember
TheCoherenceinstance should run as a cluster member client. -
Grpc
TheCoherenceinstance should run as a non-cluster member gRPC client. The proxy will be discovered using the name service. -
GrpcFixed
TheCoherenceinstance should run as a non-cluster member gRPC client, configured with a fixed address and port. -
Gar
TheCoherenceinstance has been created from a gar.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
getClient
Returns the defaultcoherence.clientproperty.- Returns:
- the default
coherence.clientproperty
-
fromClientName
Return theCoherence.Modefor the given client name.- Parameters:
sClient- the client name- Returns:
- the
Coherence.Modefor the given client name - Throws:
IllegalArgumentException- – if specified client name does not match anyCoherence.Mode
-