Interface ListenerInvokingChannelPool.ChannelPoolListener
- All Known Implementing Classes:
AutoReadDisableChannelPoolListener,AutoReadEnableChannelPoolListener,HandlerRemovingChannelPoolListener,InUseTrackingChannelPoolListener
- Enclosing class:
- ListenerInvokingChannelPool
Listener which is called for various actions performed on a
SdkChannelPool. All listener events are guaranteed to
be invoked as part of the Channel's EventLoop.-
Method Summary
Modifier and TypeMethodDescriptiondefault voidchannelAcquired(io.netty.channel.Channel channel) Called after aChannelwas acquired by callingChannelPool.acquire()orChannelPool.acquire(Promise).default voidchannelReleased(io.netty.channel.Channel channel) Called before aChannelis released by callingChannelPool.release(Channel)orChannelPool.release(Channel, Promise).
-
Method Details
-
channelAcquired
default void channelAcquired(io.netty.channel.Channel channel) Called after aChannelwas acquired by callingChannelPool.acquire()orChannelPool.acquire(Promise).This method will be called by the
EventLoopof theChannel. -
channelReleased
default void channelReleased(io.netty.channel.Channel channel) Called before aChannelis released by callingChannelPool.release(Channel)orChannelPool.release(Channel, Promise).This method will be called by the
EventLoopof theChannel.
-