org.cometd.bayeux.server
Interface BayeuxServer.SubscriptionListener

All Superinterfaces:
Bayeux.BayeuxListener, BayeuxServer.BayeuxServerListener, EventListener
Enclosing interface:
BayeuxServer

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.


Method Summary
 void subscribed(ServerSession session, ServerChannel channel)
          Callback invoked when a ServerSession subscribes to a ServerChannel.
 void unsubscribed(ServerSession session, ServerChannel channel)
          Callback invoked when a ServerSession unsubscribes from a ServerChannel.
 

Method Detail

subscribed

void subscribed(ServerSession session,
                ServerChannel channel)
Callback invoked when a ServerSession subscribes to a ServerChannel.

Parameters:
session - the session that subscribes
channel - the channel to subscribe to

unsubscribed

void unsubscribed(ServerSession session,
                  ServerChannel channel)
Callback invoked when a ServerSession unsubscribes from a ServerChannel.

Parameters:
session - the session that unsubscribes
channel - the channel to unsubscribe from


Copyright © 2008-2010 Dojo Foundation. All Rights Reserved.