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