public static enum MatsSocketServer.SessionRemovedEvent.SessionRemovedEventType extends java.lang.Enum<MatsSocketServer.SessionRemovedEvent.SessionRemovedEventType>
client.close()
), thus actively closing the session explicitly. Or,
you may first get a DEREGISTER e.g. due to the Client driving through a tunnel and loosing connection, in
which case the most likely result is (hopefully) that the Client again
SessionEstablishedEventType.RECONNECT
- but if not, the Server
may shortly get a CLOSE - or much later a TIMEOUT. This means that the session may alter back and forth
between DEREGISTER
and RECONNECT
multiple times, but
will always eventually get a CLOSE
or TIMEOUT
.Enum Constant and Description |
---|
CLOSE
The MatsSocketSession was explicitly closed.
|
DEREGISTER
The WebSocket connection was severed without an explicit MatsSocketSession closing, e.g.
|
TIMEOUT
The MatsSocketSession was previously
DEREGISTER , but was now "cleaned out" by the timeouter. |
Modifier and Type | Method and Description |
---|---|
boolean |
isSessionClosed() |
static MatsSocketServer.SessionRemovedEvent.SessionRemovedEventType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static MatsSocketServer.SessionRemovedEvent.SessionRemovedEventType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final MatsSocketServer.SessionRemovedEvent.SessionRemovedEventType DEREGISTER
closed
- the session will
either SessionEstablishedEventType.RECONNECT
again,
or you will get a CLOSE
or TIMEOUT
at a later point.public static final MatsSocketServer.SessionRemovedEvent.SessionRemovedEventType CLOSE
closed
.public static final MatsSocketServer.SessionRemovedEvent.SessionRemovedEventType TIMEOUT
DEREGISTER
, but was now "cleaned out" by the timeouter. The
MatsSocketSession is now closed
.public static MatsSocketServer.SessionRemovedEvent.SessionRemovedEventType[] values()
for (MatsSocketServer.SessionRemovedEvent.SessionRemovedEventType c : MatsSocketServer.SessionRemovedEvent.SessionRemovedEventType.values()) System.out.println(c);
public static MatsSocketServer.SessionRemovedEvent.SessionRemovedEventType 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 isSessionClosed()
CLOSE
or TIMEOUT
), or if it can still
RECONNECT
with the same MatsSocketSessionId (type
DEREGISTER
).