Package org.cometd.bayeux.server
Interface ServerChannel.SubscriptionListener
- All Superinterfaces:
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 Type Method Description void
subscribed(ServerSession session, ServerChannel channel, ServerMessage message)
Callback invoked when the givenServerSession
subscribes to the givenServerChannel
.void
unsubscribed(ServerSession session, ServerChannel channel, ServerMessage message)
Callback invoked when the givenServerSession
unsubscribes from the givenServerChannel
.
-
Method Details
-
subscribed
Callback invoked when the given
ServerSession
subscribes 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
ServerSession
unsubscribes 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)
-