K
- the key typepublic class KeyedChannelPoolHandlerAdapter<K> extends java.lang.Object implements KeyedChannelPoolHandler<K>
KeyedChannelPoolHandler
implementation to minimize the effort to implement this interface.
Extend this class to implement only few of the provided handler methods.Constructor and Description |
---|
KeyedChannelPoolHandlerAdapter() |
Modifier and Type | Method and Description |
---|---|
void |
channelAcquired(K key,
io.netty.channel.Channel ch)
Invoked when the specified
channel has been acquired from the pool. |
void |
channelClosed(K key,
io.netty.channel.Channel ch)
Invoked when the specified
channel has been closed and removed from the pool. |
void |
channelCreated(K key,
io.netty.channel.Channel ch)
Invoked when the specified
channel has been created for the specified key . |
void |
channelReleased(K key,
io.netty.channel.Channel ch)
Invoked when the specified
channel has been released to the pool. |
public void channelReleased(K key, io.netty.channel.Channel ch) throws java.lang.Exception
KeyedChannelPoolHandler
channel
has been released to the pool.channelReleased
in interface KeyedChannelPoolHandler<K>
java.lang.Exception
public void channelAcquired(K key, io.netty.channel.Channel ch) throws java.lang.Exception
KeyedChannelPoolHandler
channel
has been acquired from the pool.channelAcquired
in interface KeyedChannelPoolHandler<K>
java.lang.Exception
public void channelCreated(K key, io.netty.channel.Channel ch) throws java.lang.Exception
KeyedChannelPoolHandler
channel
has been created for the specified key
.channelCreated
in interface KeyedChannelPoolHandler<K>
java.lang.Exception
public void channelClosed(K key, io.netty.channel.Channel ch) throws java.lang.Exception
KeyedChannelPoolHandler
channel
has been closed and removed from the pool.channelClosed
in interface KeyedChannelPoolHandler<K>
java.lang.Exception