public static enum MatsSocketServer.ActiveMatsSocketSession.MatsSocketSessionState extends java.lang.Enum<MatsSocketServer.ActiveMatsSocketSession.MatsSocketSessionState>
Enum Constant and Description |
---|
CLOSED
This
MatsSocketServer.ActiveMatsSocketSession instance is dead - and the MatsSocketSession that this
MatsSocketServer.ActiveMatsSocketSession represented was CLOSED - i.e. |
DEREGISTERED
This
MatsSocketServer.ActiveMatsSocketSession instance is dead - but the MatsSocketSession that this
MatsSocketServer.ActiveMatsSocketSession represented is still "live" in the data
store , i.e. |
NO_SESSION
HELLO not yet processed - only accepts messages up to HELLO.
|
SESSION_ESTABLISHED
HELLO is processed and auth verified, and we are processing all kinds of messages.
|
Modifier and Type | Method and Description |
---|---|
boolean |
isHandlesMessages() |
static MatsSocketServer.ActiveMatsSocketSession.MatsSocketSessionState |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static MatsSocketServer.ActiveMatsSocketSession.MatsSocketSessionState[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final MatsSocketServer.ActiveMatsSocketSession.MatsSocketSessionState NO_SESSION
SESSION_ESTABLISHED
public static final MatsSocketServer.ActiveMatsSocketSession.MatsSocketSessionState SESSION_ESTABLISHED
public static final MatsSocketServer.ActiveMatsSocketSession.MatsSocketSessionState DEREGISTERED
MatsSocketServer.ActiveMatsSocketSession
instance is dead - but the MatsSocketSession that this
MatsSocketServer.ActiveMatsSocketSession
represented is still "live" in the data
store
, i.e. it was just DEREGISTERED, and can be "resurrected" by starting a new MatsSocketSession
and include the existing MatsSocketSessionId in the HELLO message. Do understand that it will not be
the same instance of ActiveMatsSocketSession
that is "reanimated" - a new
instance will be created if the client reconnects.
Note: Several "active fields" are nulled out when in this state.public static final MatsSocketServer.ActiveMatsSocketSession.MatsSocketSessionState CLOSED
MatsSocketServer.ActiveMatsSocketSession
instance is dead - and the MatsSocketSession that this
MatsSocketServer.ActiveMatsSocketSession
represented was CLOSED - i.e. the MatsSocketSession is gone forever,
any outstanding replies are dead etc, and the MatsSocketSession cannot be "resurrected".
Note: Several "active fields" are nulled out when in this state.public static MatsSocketServer.ActiveMatsSocketSession.MatsSocketSessionState[] values()
for (MatsSocketServer.ActiveMatsSocketSession.MatsSocketSessionState c : MatsSocketServer.ActiveMatsSocketSession.MatsSocketSessionState.values()) System.out.println(c);
public static MatsSocketServer.ActiveMatsSocketSession.MatsSocketSessionState 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 boolean isHandlesMessages()
SESSION_ESTABLISHED
and NO_SESSION
, for the latter only
accepts HELLO), or reject them outright (DEREGISTERED
and CLOSED
).