Enum RedisClientType
- All Implemented Interfaces:
Serializable, Comparable<RedisClientType>
Define what kind of behavior is expected from the client.
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe client should work in cluster mode.The client should work in replication mode.The client should work in sentinel mode.The client should work in single server mode (the default). -
Method Summary
Modifier and TypeMethodDescriptionstatic RedisClientTypeReturns the enum constant of this type with the specified name.static RedisClientType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
STANDALONE
The client should work in single server mode (the default). -
SENTINEL
The client should work in sentinel mode. When this mode is active, use theRedisRoleto define which role to get the client connection to. -
CLUSTER
The client should work in cluster mode. When this mode is active, use theRedisReplicasto define when replica nodes can be used for read only queries, and useRedisClusterTransactionsto define how transactions should be handled. -
REPLICATION
The client should work in replication mode. When this mode is active, use theRedisReplicasto define when replica nodes can be used for read only queries.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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
-