Package org.cometd.bayeux.server
Interface BayeuxServer.SubscriptionListener
- All Superinterfaces:
org.cometd.bayeux.Bayeux.BayeuxListener,BayeuxServer.BayeuxServerListener,EventListener
- Enclosing interface:
- BayeuxServer
Specialized listener for ServerChannel subscription events.
This listener is called when a subscribe message or an unsubscribe message
occurs for any channel known to the BayeuxServer.
This interface the correspondent of the ServerChannel.SubscriptionListener
interface, but it is invoked for any session and any channel known to the
BayeuxServer, after having invoked the ServerChannel.SubscriptionListener.
-
Method Summary
Modifier and TypeMethodDescriptiondefault voidsubscribed(ServerSession session, ServerChannel channel, ServerMessage message) Callback invoked when aServerSessionsubscribes to aServerChannel.default voidunsubscribed(ServerSession session, ServerChannel channel, ServerMessage message) Callback invoked when aServerSessionunsubscribes from aServerChannel.
-
Method Details
-
subscribed
Callback invoked when a
ServerSessionsubscribes to aServerChannel.- Parameters:
session- the session that subscribeschannel- the channel to subscribe tomessage- the subscription message sent by the client, or null in case of server-side subscription viaServerChannel.subscribe(ServerSession)
-
unsubscribed
Callback invoked when a
ServerSessionunsubscribes from aServerChannel.- Parameters:
session- the session that unsubscribeschannel- the channel to unsubscribe frommessage- the unsubscription message sent by the client, or null in case of server-side unsubscription viaServerChannel.unsubscribe(ServerSession)
-