public enum LifecycleState extends java.lang.Enum<LifecycleState>
Represents common lifecycle states of components.
The LifecycleState
s are usually combined with the AbstractStateMachine
to build up a state-machine like, observable component that can be subscribed from external components.
Enum Constant and Description |
---|
CONNECTED
The component is connected without degradation.
|
CONNECTING
The component is currently connecting or reconnecting.
|
DEGRADED
The component is connected, but with service degradation.
|
DISCONNECTED
The component is currently disconnected.
|
DISCONNECTING
The component is disconnecting.
|
Modifier and Type | Method and Description |
---|---|
static LifecycleState |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static LifecycleState[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final LifecycleState DISCONNECTED
public static final LifecycleState CONNECTING
public static final LifecycleState CONNECTED
public static final LifecycleState DISCONNECTING
public static final LifecycleState DEGRADED
public static LifecycleState[] values()
for (LifecycleState c : LifecycleState.values()) System.out.println(c);
public static LifecycleState valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant
with the specified namejava.lang.NullPointerException
- if the argument is null