Package org.cometd.bayeux.server
Interface ServerChannel.SubscriptionListener
- All Superinterfaces:
org.cometd.bayeux.Bayeux.BayeuxListener,ConfigurableServerChannel.ServerChannelListener,EventListener
- Enclosing interface:
- ServerChannel
public static interface ServerChannel.SubscriptionListener
extends ConfigurableServerChannel.ServerChannelListener
Listener objects that implement this interface will be notified of subscription events.
Instances of this listener class will be invoked before
BayeuxServer.SubscriptionListener
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.cometd.bayeux.server.ConfigurableServerChannel.ServerChannelListener
ConfigurableServerChannel.ServerChannelListener.Weak -
Method Summary
Modifier and TypeMethodDescriptiondefault voidsubscribed(ServerSession session, ServerChannel channel, ServerMessage message) Callback invoked when the givenServerSessionsubscribes to the givenServerChannel.default voidunsubscribed(ServerSession session, ServerChannel channel, ServerMessage message) Callback invoked when the givenServerSessionunsubscribes from the givenServerChannel.
-
Method Details
-
subscribed
Callback invoked when the given
ServerSessionsubscribes to the givenServerChannel.- Parameters:
session- the session that subscribeschannel- the channel the session subscribes tomessage- the subscription message sent by the client, or null in case of server-side subscription viaServerChannel.subscribe(ServerSession)
-
unsubscribed
Callback invoked when the given
ServerSessionunsubscribes from the givenServerChannel.- Parameters:
session- the session that unsubscribeschannel- the channel the session unsubscribes frommessage- the unsubscription message sent by the client, or null in case of server-side unsubscription viaServerChannel.unsubscribe(ServerSession)
-