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 ConstantDescriptionTheCoherence
instance should run as a non-cluster member Extend client.TheCoherence
instance should run as a non-cluster member Extend client, configured with a fixed address and port.TheCoherence
instance should run as a cluster member client.TheCoherence
instance has been created from a gar.TheCoherence
instance should run as a non-cluster member gRPC client.TheCoherence
instance should run as a non-cluster member gRPC client, configured with a fixed address and port. -
Method Summary
Modifier and TypeMethodDescriptionstatic Coherence.Mode
fromClientName
(String sClient) Return theCoherence.Mode
for the given client name.Returns the defaultcoherence.client
property.static Coherence.Mode
Returns 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
TheCoherence
instance should run as a non-cluster member Extend client. The proxy will be discovered using the name service. -
ClientFixed
TheCoherence
instance should run as a non-cluster member Extend client, configured with a fixed address and port. -
ClusterMember
TheCoherence
instance should run as a cluster member client. -
Grpc
TheCoherence
instance should run as a non-cluster member gRPC client. The proxy will be discovered using the name service. -
GrpcFixed
TheCoherence
instance should run as a non-cluster member gRPC client, configured with a fixed address and port. -
Gar
TheCoherence
instance 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.client
property.- Returns:
- the default
coherence.client
property
-
fromClientName
Return theCoherence.Mode
for the given client name.- Parameters:
sClient
- the client name- Returns:
- the
Coherence.Mode
for the given client name - Throws:
IllegalArgumentException
- – if specified client name does not match anyCoherence.Mode
-