public interface ChannelPoolHandler
ChannelPool
.限定符和类型 | 方法和说明 |
---|---|
void |
channelAcquired(Channel ch)
Called once a
Channel was acquired by calling ChannelPool.acquire() or
ChannelPool.acquire(Promise) . |
void |
channelCreated(Channel ch)
Called once a new
Channel is created in the ChannelPool . |
void |
channelReleased(Channel ch)
Called once a
Channel was released by calling ChannelPool.release(Channel) or
ChannelPool.release(Channel, Promise) . |
void channelReleased(Channel ch) throws java.lang.Exception
Channel
was released by calling ChannelPool.release(Channel)
or
ChannelPool.release(Channel, Promise)
.
This method will be called by the EventLoop
of the Channel
.java.lang.Exception
void channelAcquired(Channel ch) throws java.lang.Exception
Channel
was acquired by calling ChannelPool.acquire()
or
ChannelPool.acquire(Promise)
.
This method will be called by the EventLoop
of the Channel
.java.lang.Exception
void channelCreated(Channel ch) throws java.lang.Exception
Channel
is created in the ChannelPool
.
This method will be called by the EventLoop
of the Channel
.java.lang.Exception