@InterfaceAudience.Public @InterfaceStability.Evolving public enum ReplicaSelection extends Enum<ReplicaSelection>
| Enum Constant and Description | 
|---|
| CLOSEST_REPLICASelect the closest replica to the client, or a random one if all replicas are equidistant. | 
| LEADER_ONLYSelect 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 nullCopyright © 2018 The Apache Software Foundation. All rights reserved.