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