public enum SessionState extends Enum<SessionState>
Enum Constant and Description |
---|
CLOSED
Session has been normally terminated.
|
CONNECTED
Session is connected.
|
FAILED
Session failed to connect or was abnormally closed.
|
NONE
Initial session state.
|
RECONNECTING
Session lost connection with server and is reconnecting.
|
Modifier and Type | Method and Description |
---|---|
static SessionState |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static SessionState[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SessionState NONE
public static final SessionState CONNECTED
public static final SessionState RECONNECTING
public static final SessionState FAILED
public static final SessionState CLOSED
public static SessionState[] values()
for (SessionState c : SessionState.values()) System.out.println(c);
public static SessionState 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