public class SessionEventDispatcher extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
SessionEventDispatcher.EventType |
| Modifier and Type | Method and Description |
|---|---|
static void |
addListener(SessionListener listener)
Adds a
SessionListener to this session. |
static void |
dispatchEvent(HttpSession session,
SessionEventDispatcher.EventType eventType,
HttpConnection connection,
javax.servlet.AsyncContext context)
Dispatches an event related to a particular BOSH session to all registered listeners.
|
static void |
removeListener(SessionListener listener)
Removes a
SessionListener from this session. |
public static void addListener(SessionListener listener)
SessionListener to this session. The listener
will be notified of changes to the session.listener - the listener which is being added to the session.public static void removeListener(SessionListener listener)
SessionListener from this session. The
listener will no longer be updated when an event occurs on the session.listener - the session listener that is to be removed.public static void dispatchEvent(HttpSession session, SessionEventDispatcher.EventType eventType, HttpConnection connection, javax.servlet.AsyncContext context)
session - The session that relates to the event (can be null when the event type is 'pre_session_created').eventType - The type of the event (cannot be null).connection - The connection where the event originated.context - The servlet context of the eventCopyright © 2003–2019 Ignite Realtime. All rights reserved.