Enum Class ClientIntelligence
- All Implemented Interfaces:
Serializable
,Comparable<ClientIntelligence>
,Constable
ClientIntelligence specifies the level of intelligence used by the client.
- BASIC means that the client doesn't handle server topology changes and therefore will only used the list of servers supplied at configuration time
- TOPOLOGY_AWARE means that the client wants to receive topology updates from the servers so that it can deal with added / removed servers dynamically. Requests will go to the servers using a round-robin approach
- HASH_DISTRIBUTION_AWARE like TOPOLOGY_AWARE but with the additional advantage that each request involving keys will be routed to the server who is the primary owner which improves performance greatly. This is the default
- Since:
- 9.0
- Author:
- Tristan Tarrant
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic ClientIntelligence
byte
getValue()
static ClientIntelligence
Returns the enum constant of this class with the specified name.static ClientIntelligence[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
BASIC
-
TOPOLOGY_AWARE
-
HASH_DISTRIBUTION_AWARE
-
-
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
-
getValue
public byte getValue() -
getDefault
-