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 aBayeuxServer
.
-
-
Method Summary
All Methods Instance Methods Abstract Methods 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 Detail
-
sessionAdded
void sessionAdded(ServerSession session, ServerMessage message)
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
void sessionRemoved(ServerSession session, boolean timedout)
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
-
-