@ExperimentalApi(value="https://github.com/grpc/grpc-java/issues/4359") public enum ConnectivityState extends Enum<ConnectivityState>
Enum Constant and Description |
---|
CONNECTING
The channel is trying to establish a connection and is waiting to make progress on one of the
steps involved in name resolution, TCP connection establishment or TLS handshake.
|
IDLE
This is the state where the channel is not even trying to create a connection because of a
lack of new or pending RPCs.
|
READY
The channel has successfully established a connection all the way through TLS handshake (or
equivalent) and all subsequent attempt to communicate have succeeded (or are pending without
any known failure ).
|
SHUTDOWN
This channel has started shutting down.
|
TRANSIENT_FAILURE
There has been some transient failure (such as a TCP 3-way handshake timing out or a socket
error).
|
Modifier and Type | Method and Description |
---|---|
static ConnectivityState |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ConnectivityState[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ConnectivityState CONNECTING
public static final ConnectivityState READY
public static final ConnectivityState TRANSIENT_FAILURE
public static final ConnectivityState IDLE
public static final ConnectivityState SHUTDOWN
public static ConnectivityState[] values()
for (ConnectivityState c : ConnectivityState.values()) System.out.println(c);
public static ConnectivityState 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 null