public enum LifecycleState extends Enum<LifecycleState>
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
| 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(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(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 © 2021 Couchbase, Inc.. All rights reserved.