Package org.jgroups
Interface ChannelListener
- 
- All Known Implementing Classes:
- Draw,- ForkChannel,- MessageDispatcher,- RpcDispatcher
 
 public interface ChannelListenerAllows a listener to be notified when an important channel lifecycle event occurs.Usually clients do not need to implement ChannelListener interface. However, this interface can useful in scenarios when an application opens multiple channels and needs to tracks major lifecycle events on those channels from a single location or in scenarios when channel is wrapped by JGroups building block installed on top of a channel (RpcDispatcher etc) while a client needs to be notified about major channel lifecycle events. - Since:
- 2.0
- Author:
- Bela Ban
- See Also:
- JChannel.addChannelListener(ChannelListener),- JChannel.removeChannelListener(ChannelListener),- JChannel.clearChannelListeners()
 
- 
- 
Method SummaryAll Methods Instance Methods Abstract Methods Modifier and Type Method Description voidchannelClosed(JChannel channel)Channel has been closed notification callbackvoidchannelConnected(JChannel channel)Channel has been connected notification callbackvoidchannelDisconnected(JChannel channel)Channel has been disconnected notification callback
 
- 
- 
- 
Method Detail- 
channelConnectedvoid channelConnected(JChannel channel) Channel has been connected notification callback- Parameters:
- channel- the channel that has been connected
 
 - 
channelDisconnectedvoid channelDisconnected(JChannel channel) Channel has been disconnected notification callback- Parameters:
- channel- the disconnected channel
 
 - 
channelClosedvoid channelClosed(JChannel channel) Channel has been closed notification callback- Parameters:
- channel- the closed channel
 
 
- 
 
-