Enum Class LifecycleState
- All Implemented Interfaces:
Serializable,Comparable<LifecycleState>,java.lang.constant.Constable
**Represents common lifecycle states of components.**
The LifecycleStates are usually combined with the AbstractStateMachine to build up a state-machine
like, observable component that can be subscribed from external components.
[*] --> Disconnected
Disconnected --> Connecting
Connecting --> Disconnected
Connecting --> Connected
Connecting --> Degraded
Connected --> Disconnecting
Connected --> Degraded
Degraded --> Connected
Disconnecting -> Disconnected
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe component is connected without degradation.The component is currently connecting or reconnecting.The component is connected, but with service degradation.The component is currently disconnected.The component is disconnecting. -
Method Summary
Modifier and TypeMethodDescriptionstatic LifecycleStateReturns the enum constant of this class with the specified name.static LifecycleState[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
DISCONNECTED
The component is currently disconnected. -
CONNECTING
The component is currently connecting or reconnecting. -
CONNECTED
The component is connected without degradation. -
DISCONNECTING
The component is disconnecting. -
DEGRADED
The component is connected, but with service degradation.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException- if the argument is null
-