public enum EndpointState extends Enum<EndpointState>
Endpoint
can be in.Enum Constant and Description |
---|
CONNECTED
The endpoint is connected.
|
CONNECTING
The endpoint is disconnected but trying to connect right now.
|
DISCONNECTED
The endpoint is disconnected and not trying to connect.
|
DISCONNECTING
The endpoint is currently disconnecting.
|
Modifier and Type | Method and Description |
---|---|
static EndpointState |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static EndpointState[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final EndpointState DISCONNECTED
public static final EndpointState CONNECTING
public static final EndpointState CONNECTED
This is the only state where it can actually try to serve traffic in the expected way.
public static final EndpointState DISCONNECTING
public static EndpointState[] values()
for (EndpointState c : EndpointState.values()) System.out.println(c);
public static EndpointState 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.