public enum NodePreference extends java.lang.Enum<NodePreference>
| Enum Constant and Description |
|---|
FOLLOWER
When attempting connection, prefers follower nodes.
|
LEADER
When attempting connection, prefers leader nodes.
|
RANDOM
When attempting connection, has no node preference.
|
READ_ONLY_REPLICA
When attempting connection, prefers read-replica nodes.
|
| Modifier and Type | Method and Description |
|---|---|
static NodePreference |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static NodePreference[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final NodePreference LEADER
public static final NodePreference FOLLOWER
public static final NodePreference READ_ONLY_REPLICA
public static final NodePreference RANDOM
public static NodePreference[] values()
for (NodePreference c : NodePreference.values()) System.out.println(c);
public static NodePreference 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