public enum CONNECTION_STATE extends java.lang.Enum<CONNECTION_STATE>
| Enum Constant and Description |
|---|
CONNECTED |
CONNECTING |
CONNECTION_CLOSE_NOTIFIED |
CONNECTION_IDLE |
DEINITIALIZED |
DISCONNECTING_FROM_HOST |
KEEP_ALIVE_TIMEOUT |
RECEIVE_ERROR |
RECONNECTING |
| Modifier and Type | Method and Description |
|---|---|
int |
getCode() |
static CONNECTION_STATE |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static CONNECTION_STATE[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final CONNECTION_STATE CONNECTION_IDLE
public static final CONNECTION_STATE CONNECTING
public static final CONNECTION_STATE CONNECTED
public static final CONNECTION_STATE KEEP_ALIVE_TIMEOUT
public static final CONNECTION_STATE RECEIVE_ERROR
public static final CONNECTION_STATE CONNECTION_CLOSE_NOTIFIED
public static final CONNECTION_STATE RECONNECTING
public static final CONNECTION_STATE DISCONNECTING_FROM_HOST
public static final CONNECTION_STATE DEINITIALIZED
public static CONNECTION_STATE[] values()
for (CONNECTION_STATE c : CONNECTION_STATE.values()) System.out.println(c);
public static CONNECTION_STATE 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()