@InterfaceAudience.Public @InterfaceStability.Evolving public enum ReplicaSelection extends Enum<ReplicaSelection>
Enum Constant and Description |
---|
CLOSEST_REPLICA
Select the closest replica to the client.
|
LEADER_ONLY
Select the LEADER replica.
|
Modifier and Type | Method and Description |
---|---|
static ReplicaSelection |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ReplicaSelection[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ReplicaSelection LEADER_ONLY
public static final ReplicaSelection CLOSEST_REPLICA
public static ReplicaSelection[] values()
for (ReplicaSelection c : ReplicaSelection.values()) System.out.println(c);
public static ReplicaSelection 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 null