public static enum Connection.Status extends java.lang.Enum<Connection.Status>
| Enum Constant and Description |
|---|
CLOSED
The
Connection is currently closed. |
CONNECTED
The
Connection is currently connected. |
CONNECTING
The
Connection is currently connecting to a server for the first
time. |
DISCONNECTED
The
Connection is not connected. |
RECONNECTING
The
Connection is currently attempting to reconnect to a server from its server list. |
| Modifier and Type | Method and Description |
|---|---|
static Connection.Status |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Connection.Status[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Connection.Status DISCONNECTED
Connection is not connected.public static final Connection.Status CONNECTED
Connection is currently connected.public static final Connection.Status CLOSED
Connection is currently closed.public static final Connection.Status RECONNECTING
Connection is currently attempting to reconnect to a server from its server list.public static final Connection.Status CONNECTING
Connection is currently connecting to a server for the first
time.public static Connection.Status[] values()
for (Connection.Status c : Connection.Status.values()) System.out.println(c);
public static Connection.Status valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is null