public enum RedisReplicas extends Enum<RedisReplicas>
Enum Constant and Description |
---|
ALWAYS
Queries are always run on REPLICA nodes (never on MASTER node).
|
NEVER
Never use REPLICA, queries are always run on a MASTER node.
|
SHARE
Queries can be randomly run on both MASTER and REPLICA nodes.
|
Modifier and Type | Method and Description |
---|---|
static RedisReplicas |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static RedisReplicas[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final RedisReplicas NEVER
public static final RedisReplicas SHARE
public static final RedisReplicas ALWAYS
public static RedisReplicas[] values()
for (RedisReplicas c : RedisReplicas.values()) System.out.println(c);
public static RedisReplicas 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.