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
ConfigurableServerChannel.ServerChannelListener.Weak
Modifier and Type | Method and Description |
---|---|
default void |
subscribed(ServerSession session,
ServerChannel channel,
ServerMessage message)
Callback invoked when the given
ServerSession subscribes to the given ServerChannel . |
default void |
unsubscribed(ServerSession session,
ServerChannel channel,
ServerMessage message)
Callback invoked when the given
ServerSession unsubscribes from the given ServerChannel . |
default void subscribed(ServerSession session, ServerChannel channel, ServerMessage message)
Callback invoked when the given ServerSession
subscribes to the given ServerChannel
.
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 via ServerChannel.subscribe(ServerSession)
default void unsubscribed(ServerSession session, ServerChannel channel, ServerMessage message)
Callback invoked when the given ServerSession
unsubscribes from the given ServerChannel
.
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 via ServerChannel.unsubscribe(ServerSession)
Copyright © 2008–2024 The CometD Project. All rights reserved.