public class SessionEvent
extends java.util.EventObject
Modifier and Type | Field and Description |
---|---|
static int |
LAST_REMOVED
The last session removed.
|
static int |
MAXIMUM_REACHED
The maximum number of session reached.
|
protected java.lang.String |
message
The message string.
|
protected AoSession |
session
The session.
|
static int |
SESSION_ADDED
The session added.
|
static int |
SESSION_REMOVED
The session removed.
|
protected int |
state
The state.
|
Constructor and Description |
---|
SessionEvent(java.lang.Object source,
AoSession session,
int state,
java.lang.String message)
The constructor receiving the state and the message.
|
Modifier and Type | Method and Description |
---|---|
protected void |
finalize() |
java.lang.String |
getMessage()
Get the message.
|
AoSession |
getSession()
Get the session.
|
int |
getState()
Get the state of the event.
|
java.lang.String |
stateToString()
Get a string for the current state.
|
public static final int SESSION_ADDED
public static final int SESSION_REMOVED
public static final int MAXIMUM_REACHED
public static final int LAST_REMOVED
protected java.lang.String message
protected int state
protected AoSession session
public SessionEvent(java.lang.Object source, AoSession session, int state, java.lang.String message)
protected void finalize() throws java.lang.Throwable
finalize
in class java.lang.Object
java.lang.Throwable
public int getState()
public java.lang.String getMessage()
public AoSession getSession()
public java.lang.String stateToString()