Package org.cometd.bayeux.server
Interface BayeuxServer.SessionListener
-
- All Superinterfaces:
Bayeux.BayeuxListener
,BayeuxServer.BayeuxServerListener
,java.util.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 Default Methods Modifier and Type Method Description default 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 Detail
-
sessionAdded
default 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
default void sessionRemoved(ServerSession session, ServerMessage message, boolean timeout)
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
-
-