Package io.netty.channel.pool
Interface ChannelPoolHandler
-
- All Known Implementing Classes:
AbstractChannelPoolHandler
public interface ChannelPoolHandlerHandler which is called for various actions done by theChannelPool.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidchannelAcquired(Channel ch)Called once aChannelwas acquired by callingChannelPool.acquire()orChannelPool.acquire(Promise).voidchannelCreated(Channel ch)Called once a newChannelis created in theChannelPool.voidchannelReleased(Channel ch)Called once aChannelwas released by callingChannelPool.release(Channel)orChannelPool.release(Channel, Promise).
-
-
-
Method Detail
-
channelReleased
void channelReleased(Channel ch) throws java.lang.Exception
Called once aChannelwas released by callingChannelPool.release(Channel)orChannelPool.release(Channel, Promise). This method will be called by theEventLoopof theChannel.- Throws:
java.lang.Exception
-
channelAcquired
void channelAcquired(Channel ch) throws java.lang.Exception
Called once aChannelwas acquired by callingChannelPool.acquire()orChannelPool.acquire(Promise). This method will be called by theEventLoopof theChannel.- Throws:
java.lang.Exception
-
channelCreated
void channelCreated(Channel ch) throws java.lang.Exception
Called once a newChannelis created in theChannelPool. This method will be called by theEventLoopof theChannel.- Throws:
java.lang.Exception
-
-