Package org.cometd.bayeux.server
Interface ServerChannel.SubscriptionListener
-
- All Superinterfaces:
Bayeux.BayeuxListener
,ConfigurableServerChannel.ServerChannelListener
,java.util.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
instances.BayeuxServer.SubscriptionListener
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.cometd.bayeux.server.ConfigurableServerChannel.ServerChannelListener
ConfigurableServerChannel.ServerChannelListener.Weak
-
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default void
subscribed(ServerSession session, ServerChannel channel, ServerMessage message)
Callback invoked when the givenServerSession
subscribes to the givenServerChannel
.default void
unsubscribed(ServerSession session, ServerChannel channel, ServerMessage message)
Callback invoked when the givenServerSession
unsubscribes from the givenServerChannel
.
-
-
-
Method Detail
-
subscribed
default void subscribed(ServerSession session, ServerChannel channel, ServerMessage message)
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
default void unsubscribed(ServerSession session, ServerChannel channel, ServerMessage message)
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)
-
-