public enum ServiceState extends Enum<ServiceState>
Service
can be in.Enum Constant and Description |
---|
CONNECTED
This
Service has all endpoints connected. |
CONNECTING
This
Service has all endpoints connecting. |
DEGRADED
This
Service has at least one endpoint connected. |
DISCONNECTED
This
Service is disconnected (has endpoints and all are disconnected) |
DISCONNECTING
This
Service has all endpoints disconnecting. |
IDLE
This
Service is idle (no endpoints attached at all) |
Modifier and Type | Method and Description |
---|---|
static ServiceState |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ServiceState[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ServiceState IDLE
Service
is idle (no endpoints attached at all)public static final ServiceState DISCONNECTED
Service
is disconnected (has endpoints and all are disconnected)public static final ServiceState CONNECTING
Service
has all endpoints connecting.public static final ServiceState CONNECTED
Service
has all endpoints connected.public static final ServiceState DISCONNECTING
Service
has all endpoints disconnecting.public static final ServiceState DEGRADED
Service
has at least one endpoint connected.public static ServiceState[] values()
for (ServiceState c : ServiceState.values()) System.out.println(c);
public static ServiceState 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 © 2020 Couchbase, Inc.. All rights reserved.