public enum EventType extends Enum<EventType>
enum
that represents all session related event types.Enum Constant and Description |
---|
DATA_RECEIVED
Some data has just been received from the remote end.
|
DATA_SENT
Some data has just been sent to the remote end.
|
EXCEPTION_CAUGHT
An exception has just been caught.
|
SESSION_CLOSED
The session has just been closed.
|
SESSION_CREATED
The session has just been created.
|
SESSION_ENDING
The session is about to end.
|
SESSION_OPENED
The session has just been opened.
|
SESSION_READY
The session is fully initialized and is ready to send/receive user data.
|
Modifier and Type | Method and Description |
---|---|
static EventType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static EventType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final EventType SESSION_CREATED
SessionState.OPENING
state.SessionState
public static final EventType SESSION_OPENED
SessionState.OPEN
state.SessionState
public static final EventType SESSION_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 type.SessionState
public static final EventType SESSION_ENDING
public static final EventType DATA_RECEIVED
public static final EventType DATA_SENT
public static final EventType EXCEPTION_CAUGHT
public static final EventType SESSION_READY
SessionState
public static EventType[] values()
for (EventType c : EventType.values()) System.out.println(c);
public static EventType 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 nullCopyright © 2017–2022 SNF4J.ORG. All rights reserved.