Interface BayeuxServer.ChannelListener
- All Superinterfaces:
Bayeux.BayeuxListener
,BayeuxServer.BayeuxServerListener
,ConfigurableServerChannel.Initializer
,EventListener
- Enclosing interface:
- BayeuxServer
public static interface BayeuxServer.ChannelListener extends BayeuxServer.BayeuxServerListener, ConfigurableServerChannel.Initializer
Specialized listener for ServerChannel
events.
The ConfigurableServerChannel.Initializer.configureChannel(ConfigurableServerChannel)
method is called atomically during Channel creation so that the channel may be configured
before use. It is guaranteed that in case of concurrent channel creation, the
ConfigurableServerChannel.Initializer.configureChannel(ConfigurableServerChannel)
is
invoked exactly once.
The other methods are called asynchronously when a channel is added to or removed
from a BayeuxServer
, and there is no guarantee that these methods will be called
before any other server channel listeners
that may be added during channel configuration.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.cometd.bayeux.server.ConfigurableServerChannel.Initializer
ConfigurableServerChannel.Initializer.Persistent
-
Method Summary
Modifier and Type Method Description void
channelAdded(ServerChannel channel)
Callback invoked when aServerChannel
has been added to aBayeuxServer
object.void
channelRemoved(String channelId)
Callback invoked when aServerChannel
has been removed from aBayeuxServer
object.Methods inherited from interface org.cometd.bayeux.server.ConfigurableServerChannel.Initializer
configureChannel
-
Method Details
-
channelAdded
Callback invoked when a
ServerChannel
has been added to aBayeuxServer
object.- Parameters:
channel
- the channel that has been added
-
channelRemoved
Callback invoked when a
ServerChannel
has been removed from aBayeuxServer
object.- Parameters:
channelId
- the channel identifier of the channel that has been removed.
-