public interface ChannelListener
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.
JChannel.addChannelListener(ChannelListener)
,
JChannel.removeChannelListener(ChannelListener)
,
JChannel.clearChannelListeners()
Modifier and Type | Method and Description |
---|---|
void |
channelClosed(JChannel channel)
Channel has been closed notification callback
|
void |
channelConnected(JChannel channel)
Channel has been connected notification callback
|
void |
channelDisconnected(JChannel channel)
Channel has been disconnected notification callback
|
void channelConnected(JChannel channel)
channel
- the channel that has been connectedvoid channelDisconnected(JChannel channel)
channel
- the disconnected channelvoid channelClosed(JChannel channel)
channel
- the closed channelCopyright © 2018 JBoss, a division of Red Hat. All rights reserved.