Package com.hazelcast.client.config
Enum Class RoutingMode
- All Implemented Interfaces:
Serializable
,Comparable<RoutingMode>
,Constable
Clients can connect to cluster members in one of 3 modes:
SINGLE_MEMBER
: Client only connects to a single memberALL_MEMBERS
: Client connects to all cluster membersMULTI_MEMBER
: Client only connects to a subset of members based onRoutingStrategy
.
The UNKNOWN
enumeration represents a state where the client's
RoutingMode
is not known, due to < 5.5 client versions
- Since:
- 5.5.3
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionRepresents an all members routing mode, previously known as `SMART`.Represents a multi member routing mode that does not connect to all members, previously known as `SUBSET`.Represents a single member routing mode, previously known as `UNISOCKET`.Represents an unknown routing mode, due to < 5.5 client versions Note: This mode should never be configured as aRoutingMode
-
Method Summary
Modifier and TypeMethodDescriptionstatic RoutingMode
getById
(int id) int
getId()
boolean
isKnown()
Returns whether thisRoutingMode
is a concrete enumeration representing a real routing mode, or if it's a placeholder for an unknown value that could not be parsed.static RoutingMode
Returns the enum constant of this class with the specified name.static RoutingMode[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
SINGLE_MEMBER
Represents a single member routing mode, previously known as `UNISOCKET`. -
ALL_MEMBERS
Represents an all members routing mode, previously known as `SMART`. -
MULTI_MEMBER
Represents a multi member routing mode that does not connect to all members, previously known as `SUBSET`. -
UNKNOWN
Represents an unknown routing mode, due to < 5.5 client versions Note: This mode should never be configured as aRoutingMode
-
-
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
-
getId
public int getId() -
isKnown
public boolean isKnown()Returns whether thisRoutingMode
is a concrete enumeration representing a real routing mode, or if it's a placeholder for an unknown value that could not be parsed.- Returns:
true
if thisRoutingMode
is a real mode, orfalse
otherwise
-
getById
-