Interface ListenerInvokingChannelPool.ChannelPoolListener
-
- All Known Implementing Classes:
AutoReadDisableChannelPoolListener
,AutoReadEnableChannelPoolListener
,HandlerRemovingChannelPoolListener
,InUseTrackingChannelPoolListener
- Enclosing class:
- ListenerInvokingChannelPool
public static interface ListenerInvokingChannelPool.ChannelPoolListener
Listener which is called for various actions performed on aSdkChannelPool
. All listener events are guaranteed to be invoked as part of theChannel
'sEventLoop
.
-
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default void
channelAcquired(io.netty.channel.Channel channel)
Called after aChannel
was acquired by callingChannelPool.acquire()
orChannelPool.acquire(Promise)
.default void
channelReleased(io.netty.channel.Channel channel)
Called before aChannel
is released by callingChannelPool.release(Channel)
orChannelPool.release(Channel, Promise)
.
-
-
-
Method Detail
-
channelAcquired
default void channelAcquired(io.netty.channel.Channel channel)
Called after aChannel
was acquired by callingChannelPool.acquire()
orChannelPool.acquire(Promise)
.This method will be called by the
EventLoop
of theChannel
.
-
channelReleased
default void channelReleased(io.netty.channel.Channel channel)
Called before aChannel
is released by callingChannelPool.release(Channel)
orChannelPool.release(Channel, Promise)
.This method will be called by the
EventLoop
of theChannel
.
-
-