public enum ReplicaMode extends java.lang.Enum<ReplicaMode>
Represents the different modes to read from replica nodes.
Enum Constant and Description |
---|
ALL
Get from all replicas and the active node.
|
FIRST
Get only from the first replica configured for the document.
|
SECOND
Get only from the second replica configured for the document.
|
THIRD
Get only from the third replica configured for the document.
|
Modifier and Type | Method and Description |
---|---|
static ReplicaMode |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static ReplicaMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ReplicaMode ALL
public static final ReplicaMode FIRST
public static final ReplicaMode SECOND
public static final ReplicaMode THIRD
public static ReplicaMode[] values()
for (ReplicaMode c : ReplicaMode.values()) System.out.println(c);
public static ReplicaMode valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant
with the specified namejava.lang.NullPointerException
- if the argument is null