Module org.cometd.api.server
Package org.cometd.bayeux.server
Interface BayeuxServer.SessionListener
- All Superinterfaces:
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 void
sessionAdded
(ServerSession session, ServerMessage message) Callback invoked when aServerSession
has been added to aBayeuxServer
object.default void
sessionRemoved
(ServerSession session, ServerMessage message, boolean timeout) 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 removedmessage
- the message that caused the session removal, or nulltimeout
- whether the session has been removed due to a timeout
-