public static enum TokenAwarePolicy.ReplicaOrdering extends Enum<TokenAwarePolicy.ReplicaOrdering>
Enum Constant and Description |
---|
NEUTRAL
Return the replicas in the exact same order in which they appear in the child
policy's query plan.
|
RANDOM
Return replicas in a different, random order for each query plan.
|
TOPOLOGICAL
Order replicas by token ring topology, i.e.
|
Modifier and Type | Method and Description |
---|---|
static TokenAwarePolicy.ReplicaOrdering |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static TokenAwarePolicy.ReplicaOrdering[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TokenAwarePolicy.ReplicaOrdering TOPOLOGICAL
public static final TokenAwarePolicy.ReplicaOrdering RANDOM
public static final TokenAwarePolicy.ReplicaOrdering NEUTRAL
LatencyAwarePolicy
).public static TokenAwarePolicy.ReplicaOrdering[] values()
for (TokenAwarePolicy.ReplicaOrdering c : TokenAwarePolicy.ReplicaOrdering.values()) System.out.println(c);
public static TokenAwarePolicy.ReplicaOrdering 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 © 2012–2018. All rights reserved.