public static interface BayeuxServer.SubscriptionListener extends BayeuxServer.BayeuxServerListener
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
.
Modifier and Type | Method and Description |
---|---|
default void |
subscribed(ServerSession session,
ServerChannel channel,
ServerMessage message)
Callback invoked when a
ServerSession subscribes to a ServerChannel . |
default void |
unsubscribed(ServerSession session,
ServerChannel channel,
ServerMessage message)
Callback invoked when a
ServerSession unsubscribes from a ServerChannel . |
default void subscribed(ServerSession session, ServerChannel channel, ServerMessage message)
Callback invoked when a ServerSession
subscribes to a ServerChannel
.
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 via ServerChannel.subscribe(ServerSession)
default void unsubscribed(ServerSession session, ServerChannel channel, ServerMessage message)
Callback invoked when a ServerSession
unsubscribes from a ServerChannel
.
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 via ServerChannel.unsubscribe(ServerSession)
Copyright © 2008–2024 The CometD Project. All rights reserved.