public enum RedisClientType extends Enum<RedisClientType>
Enum Constant and Description |
---|
CLUSTER
The client should work in cluster mode.
|
REPLICATION
The client should work in replication mode.
|
SENTINEL
The client should work in sentinel mode.
|
STANDALONE
The client should work in single server mode (the default).
|
Modifier and Type | Method and Description |
---|---|
static RedisClientType |
valueOf(String name)
Returns 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.
|
public static final RedisClientType STANDALONE
public static final RedisClientType SENTINEL
RedisRole
to define which role to get the client
connection to.public static final RedisClientType CLUSTER
RedisReplicas
to define when replica nodes can be
used for read only queries.public static final RedisClientType REPLICATION
RedisReplicas
to define when replica nodes can be
used for read only queries.public static RedisClientType[] values()
for (RedisClientType c : RedisClientType.values()) System.out.println(c);
public static RedisClientType valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullCopyright © 2024 Eclipse. All rights reserved.