public enum ConnectionState extends java.lang.Enum<ConnectionState>
| Enum Constant and Description |
|---|
CONNECT_CONNECTED |
CONNECT_CONNECTING |
CONNECT_DISCONNECTED |
CONNECT_DISCONNECTING |
CONNECT_FAILURE |
CONNECT_IDLE |
CONNECT_TIMEOUT |
| Modifier and Type | Method and Description |
|---|---|
int |
getCode() |
static ConnectionState |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static ConnectionState[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ConnectionState CONNECT_IDLE
public static final ConnectionState CONNECT_CONNECTING
public static final ConnectionState CONNECT_CONNECTED
public static final ConnectionState CONNECT_FAILURE
public static final ConnectionState CONNECT_TIMEOUT
public static final ConnectionState CONNECT_DISCONNECTING
public static final ConnectionState CONNECT_DISCONNECTED
public static ConnectionState[] values()
for (ConnectionState c : ConnectionState.values()) System.out.println(c);
public static ConnectionState 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 nullpublic int getCode()