public enum LifecycleState extends 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.
|
IDLE
The component is idle and has no associated connections to identify.
|
Modifier and Type | Method and Description |
---|---|
static LifecycleState |
valueOf(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 final LifecycleState IDLE
public static LifecycleState[] values()
for (LifecycleState c : LifecycleState.values()) System.out.println(c);
public static LifecycleState valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullCopyright © 2016 Couchbase, Inc.. All rights reserved.