Package org.cometd.bayeux.server
Interface BayeuxServer.SessionListener
- All Superinterfaces:
Bayeux.BayeuxListener
,BayeuxServer.BayeuxServerListener
,EventListener
- Enclosing interface:
- BayeuxServer
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
.
-
Method Summary
Modifier and Type Method Description void
sessionAdded(ServerSession session, ServerMessage message)
Callback invoked when aServerSession
has been added to aBayeuxServer
object.void
sessionRemoved(ServerSession session, boolean timedout)
Callback invoked when aServerSession
has been removed from aBayeuxServer
object.
-
Method Details
-
sessionAdded
Callback invoked when a
ServerSession
has been added to aBayeuxServer
object.- Parameters:
session
- the session that has been addedmessage
- the handshake message from the client
-
sessionRemoved
Callback invoked when a
ServerSession
has been removed from aBayeuxServer
object.- Parameters:
session
- the session that has been removedtimedout
- whether the session has been removed for a timeout or not
-