Enum ClusterSetSlotOptions.SlotAction
- java.lang.Object
-
- java.lang.Enum<ClusterSetSlotOptions.SlotAction>
-
- glide.api.models.commands.cluster.ClusterSetSlotOptions.SlotAction
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<ClusterSetSlotOptions.SlotAction>
- Enclosing class:
- ClusterSetSlotOptions
public static enum ClusterSetSlotOptions.SlotAction extends java.lang.Enum<ClusterSetSlotOptions.SlotAction>
Defines the action to perform on the slot.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ClusterSetSlotOptions.SlotActionvalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static ClusterSetSlotOptions.SlotAction[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
IMPORTING
public static final ClusterSetSlotOptions.SlotAction IMPORTING
Mark the slot as being imported from another node.
-
MIGRATING
public static final ClusterSetSlotOptions.SlotAction MIGRATING
Mark the slot as being migrated to another node.
-
STABLE
public static final ClusterSetSlotOptions.SlotAction STABLE
Clear the importing/migrating state and mark the slot as stable.
-
NODE
public static final ClusterSetSlotOptions.SlotAction NODE
Bind the slot to a specific node.
-
-
Method Detail
-
values
public static ClusterSetSlotOptions.SlotAction[] 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 (ClusterSetSlotOptions.SlotAction c : ClusterSetSlotOptions.SlotAction.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ClusterSetSlotOptions.SlotAction 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
-
-