Package org.cometd.bayeux.server
Interface BayeuxServer.SessionListener
- All Superinterfaces:
org.cometd.bayeux.Bayeux.BayeuxListener,BayeuxServer.BayeuxServerListener,EventListener
- Enclosing interface:
- BayeuxServer
Specialized listener for ServerSession events.
This listener is called when a ServerSession is added
or removed from a BayeuxServer.
-
Method Summary
Modifier and TypeMethodDescriptiondefault voidsessionAdded(ServerSession session, ServerMessage message)Callback invoked when aServerSessionhas been added to aBayeuxServerobject.default voidsessionRemoved(ServerSession session, ServerMessage message, boolean timeout)Callback invoked when aServerSessionhas been removed from aBayeuxServerobject.
-
Method Details
-
sessionAdded
Callback invoked when a
ServerSessionhas been added to aBayeuxServerobject.- Parameters:
session- the session that has been addedmessage- the handshake message from the client
-
sessionRemoved
Callback invoked when a
ServerSessionhas been removed from aBayeuxServerobject.- Parameters:
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
-