Package glide.api.models.configuration
Enum RequestRoutingConfiguration.SimpleMultiNodeRoute
- java.lang.Object
-
- java.lang.Enum<RequestRoutingConfiguration.SimpleMultiNodeRoute>
-
- glide.api.models.configuration.RequestRoutingConfiguration.SimpleMultiNodeRoute
-
- All Implemented Interfaces:
RequestRoutingConfiguration.MultiNodeRoute,RequestRoutingConfiguration.Route,java.io.Serializable,java.lang.Comparable<RequestRoutingConfiguration.SimpleMultiNodeRoute>
- Enclosing class:
- RequestRoutingConfiguration
public static enum RequestRoutingConfiguration.SimpleMultiNodeRoute extends java.lang.Enum<RequestRoutingConfiguration.SimpleMultiNodeRoute> implements RequestRoutingConfiguration.MultiNodeRoute
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ALL_NODESRoute request to all nodes.ALL_PRIMARIESRoute request to all primary nodes.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetOrdinal()static RequestRoutingConfiguration.SimpleMultiNodeRoutevalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static RequestRoutingConfiguration.SimpleMultiNodeRoute[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ALL_NODES
public static final RequestRoutingConfiguration.SimpleMultiNodeRoute ALL_NODES
Route request to all nodes. Warning
Don't use it with write commands, they could be routed to a replica (RO) node and fail.
-
ALL_PRIMARIES
public static final RequestRoutingConfiguration.SimpleMultiNodeRoute ALL_PRIMARIES
Route request to all primary nodes.
-
-
Method Detail
-
values
public static RequestRoutingConfiguration.SimpleMultiNodeRoute[] 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 (RequestRoutingConfiguration.SimpleMultiNodeRoute c : RequestRoutingConfiguration.SimpleMultiNodeRoute.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static RequestRoutingConfiguration.SimpleMultiNodeRoute valueOf(java.lang.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:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
getOrdinal
public int getOrdinal()
-
-