Enum Class Session.State
- All Implemented Interfaces:
- Serializable,- Comparable<Session.State>,- Constable
- Enclosing interface:
- Session
Session state.
- 
Nested Class SummaryNested classes/interfaces inherited from class java.lang.EnumEnum.EnumDesc<E extends Enum<E>>
- 
Enum Constant SummaryEnum ConstantsEnum ConstantDescriptionThe session has been closed by the client.The session has been closed (or rejected) by the server.The session has lost its connection to a server and could not be recovered.An active connection with the server has been established.The session is establishing its initial connection.Connection with a server has been lost and the session is attempting reconnection.
- 
Method SummaryModifier and TypeMethodDescriptionbooleanisClosed()Returns true if a disconnected state.booleanReturns true if a connected state.booleanReturns true if a recovering state.static Session.StateReturns the enum constant of this class with the specified name.static Session.State[]values()Returns an array containing the constants of this enum class, in the order they are declared.
- 
Enum Constant Details- 
CONNECTINGThe session is establishing its initial connection.
- 
CONNECTED_ACTIVEAn active connection with the server has been established.
- 
RECOVERING_RECONNECTConnection with a server has been lost and the session is attempting reconnection.
- 
CLOSED_BY_CLIENTThe session has been closed by the client.
- 
CLOSED_BY_SERVERThe session has been closed (or rejected) by the server.
- 
CLOSED_FAILEDThe session has lost its connection to a server and could not be recovered.
 
- 
- 
Method Details- 
valuesReturns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
 
- 
valueOfReturns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
- name- the name of the enum constant to be returned.
- Returns:
- the enum constant with the specified name
- Throws:
- IllegalArgumentException- if this enum class has no constant with the specified name
- NullPointerException- if the argument is null
 
- 
isConnectedpublic boolean isConnected()Returns true if a connected state.- Returns:
- true if connected state
 
- 
isRecoveringpublic boolean isRecovering()Returns true if a recovering state.- Returns:
- true if recovering
 
- 
isClosedpublic boolean isClosed()Returns true if a disconnected state.- Returns:
- true if disconnected
 
 
-