public static interface BayeuxServer.SessionListener extends BayeuxServer.BayeuxServerListener
Specialized listener for ServerSession events.
This listener is called when a ServerSession is added
or removed from a BayeuxServer.
| Modifier and Type | Method and Description |
|---|---|
default void |
sessionAdded(ServerSession session,
ServerMessage message)
Callback invoked when a
ServerSession has been added to a BayeuxServer object. |
default void |
sessionRemoved(ServerSession session,
boolean timeout)
Deprecated.
|
default void |
sessionRemoved(ServerSession session,
ServerMessage message,
boolean timeout)
Callback invoked when a
ServerSession has been removed from a BayeuxServer object. |
default void sessionAdded(ServerSession session, ServerMessage message)
Callback invoked when a ServerSession has been added to a BayeuxServer object.
session - the session that has been addedmessage - the handshake message from the clientdefault void sessionRemoved(ServerSession session, ServerMessage message, boolean timeout)
Callback invoked when a ServerSession has been removed from a BayeuxServer object.
session - the session that has been removedmessage - the message that caused the session removal, or nulltimeout - whether the session has been removed due to a timeout@Deprecated default void sessionRemoved(ServerSession session, boolean timeout)
sessionRemoved(ServerSession, ServerMessage, boolean) insteadCallback invoked when a ServerSession has been removed from a BayeuxServer object.
session - the session that has been removedtimeout - whether the session has been removed for a timeout or notCopyright © 2008–2024 The CometD Project. All rights reserved.