|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ChannelListener
Allows 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.
Channel.addChannelListener(ChannelListener)
,
Channel.removeChannelListener(ChannelListener)
,
Channel.clearChannelListeners()
Method Summary | |
---|---|
void |
channelClosed(Channel channel)
Channel has been closed notification callback |
void |
channelConnected(Channel channel)
Channel has been connected notification callback |
void |
channelDisconnected(Channel channel)
Channel has been disconnected notification callback |
Method Detail |
---|
void channelConnected(Channel channel)
channel
- the channel that has been connectedvoid channelDisconnected(Channel channel)
channel
- the disconnected channelvoid channelClosed(Channel channel)
channel
- the closed channel
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |