public enum SessionEvent extends Enum<SessionEvent>
enum
that represents session events related with changes of the session state.Enum Constant and Description |
---|
CLOSED
The session has just been closed.
|
CREATED
The session has just been created.
|
ENDING
The session is about to end.
|
OPENED
The session has just been opened.
|
READY
The session is fully initialized and is ready to send/receive user data.
|
Modifier and Type | Method and Description |
---|---|
EventType |
type() |
static SessionEvent |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static SessionEvent[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SessionEvent CREATED
SessionState.OPENING
state.SessionState
public static final SessionEvent OPENED
SessionState.OPEN
state.SessionState
public static final SessionEvent READY
SessionState
public static final SessionEvent CLOSED
SessionState.CLOSING
state. This
event is only fired if the session was previously in the SessionState.OPEN
state. It is
always followed by the SESSION_ENDING
event.SessionState
public static final SessionEvent ENDING
public static SessionEvent[] values()
for (SessionEvent c : SessionEvent.values()) System.out.println(c);
public static SessionEvent 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 nullpublic EventType type()
Copyright © 2017–2021 SNF4J.ORG. All rights reserved.