Package com.datastax.driver.core
Enum QueryOptions.RequestRoutingMethod
- java.lang.Object
-
- java.lang.Enum<QueryOptions.RequestRoutingMethod>
-
- com.datastax.driver.core.QueryOptions.RequestRoutingMethod
-
- All Implemented Interfaces:
Serializable,Comparable<QueryOptions.RequestRoutingMethod>
- Enclosing class:
- QueryOptions
public static enum QueryOptions.RequestRoutingMethod extends Enum<QueryOptions.RequestRoutingMethod>
The request routing method for queries.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description PRESERVE_REPLICA_ORDERREGULAR
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static QueryOptions.RequestRoutingMethodvalueOf(String name)Returns the enum constant of this type with the specified name.static QueryOptions.RequestRoutingMethod[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
REGULAR
public static final QueryOptions.RequestRoutingMethod REGULAR
-
PRESERVE_REPLICA_ORDER
public static final QueryOptions.RequestRoutingMethod PRESERVE_REPLICA_ORDER
-
-
Method Detail
-
values
public static QueryOptions.RequestRoutingMethod[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (QueryOptions.RequestRoutingMethod c : QueryOptions.RequestRoutingMethod.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static QueryOptions.RequestRoutingMethod valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
-