Interface BayeuxServer.ChannelListener
-
- All Superinterfaces:
Bayeux.BayeuxListener,BayeuxServer.BayeuxServerListener,ConfigurableServerChannel.Initializer,java.util.EventListener
- Enclosing interface:
- BayeuxServer
public static interface BayeuxServer.ChannelListener extends BayeuxServer.BayeuxServerListener, ConfigurableServerChannel.Initializer
Specialized listener for
ServerChannelevents.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, theConfigurableServerChannel.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 otherserver channel listenersthat 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
All Methods Instance Methods Default Methods Modifier and Type Method Description default voidchannelAdded(ServerChannel channel)Callback invoked when aServerChannelhas been added to aBayeuxServerobject.default voidchannelRemoved(java.lang.String channelId)Callback invoked when aServerChannelhas been removed from aBayeuxServerobject.-
Methods inherited from interface org.cometd.bayeux.server.ConfigurableServerChannel.Initializer
configureChannel
-
-
-
-
Method Detail
-
channelAdded
default void channelAdded(ServerChannel channel)
Callback invoked when a
ServerChannelhas been added to aBayeuxServerobject.- Parameters:
channel- the channel that has been added
-
channelRemoved
default void channelRemoved(java.lang.String channelId)
Callback invoked when a
ServerChannelhas been removed from aBayeuxServerobject.- Parameters:
channelId- the channel identifier of the channel that has been removed.
-
-