Enum ClientIntelligence
- java.lang.Object
-
- java.lang.Enum<ClientIntelligence>
-
- org.infinispan.client.hotrod.configuration.ClientIntelligence
-
- All Implemented Interfaces:
Serializable
,Comparable<ClientIntelligence>
public enum ClientIntelligence extends Enum<ClientIntelligence>
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
-
-
Enum Constant Summary
Enum Constants Enum Constant Description BASIC
HASH_DISTRIBUTION_AWARE
TOPOLOGY_AWARE
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ClientIntelligence
getDefault()
byte
getValue()
static ClientIntelligence
valueOf(String name)
Returns the enum constant of this type with the specified name.static ClientIntelligence[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
BASIC
public static final ClientIntelligence BASIC
-
TOPOLOGY_AWARE
public static final ClientIntelligence TOPOLOGY_AWARE
-
HASH_DISTRIBUTION_AWARE
public static final ClientIntelligence HASH_DISTRIBUTION_AWARE
-
-
Method Detail
-
values
public static ClientIntelligence[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (ClientIntelligence c : ClientIntelligence.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ClientIntelligence valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified nameNullPointerException
- if the argument is null
-
getValue
public byte getValue()
-
getDefault
public static ClientIntelligence getDefault()
-
-