Package io.lettuce.core.protocol
Enum CommandHandler.LifecycleState
- java.lang.Object
-
- java.lang.Enum<CommandHandler.LifecycleState>
-
- io.lettuce.core.protocol.CommandHandler.LifecycleState
-
- All Implemented Interfaces:
Serializable
,Comparable<CommandHandler.LifecycleState>
- Enclosing class:
- CommandHandler
public static enum CommandHandler.LifecycleState extends Enum<CommandHandler.LifecycleState>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ACTIVATING
ACTIVE
CLOSED
CONNECTED
DEACTIVATED
DEACTIVATING
DISCONNECTED
NOT_CONNECTED
REGISTERED
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static CommandHandler.LifecycleState
valueOf(String name)
Returns the enum constant of this type with the specified name.static CommandHandler.LifecycleState[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
NOT_CONNECTED
public static final CommandHandler.LifecycleState NOT_CONNECTED
-
REGISTERED
public static final CommandHandler.LifecycleState REGISTERED
-
CONNECTED
public static final CommandHandler.LifecycleState CONNECTED
-
ACTIVATING
public static final CommandHandler.LifecycleState ACTIVATING
-
ACTIVE
public static final CommandHandler.LifecycleState ACTIVE
-
DISCONNECTED
public static final CommandHandler.LifecycleState DISCONNECTED
-
DEACTIVATING
public static final CommandHandler.LifecycleState DEACTIVATING
-
DEACTIVATED
public static final CommandHandler.LifecycleState DEACTIVATED
-
CLOSED
public static final CommandHandler.LifecycleState CLOSED
-
-
Method Detail
-
values
public static CommandHandler.LifecycleState[] 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 (CommandHandler.LifecycleState c : CommandHandler.LifecycleState.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static CommandHandler.LifecycleState 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
-
-