public final class InUseTrackingChannelPoolListener extends Object implements ListenerInvokingChannelPool.ChannelPoolListener
Channels as in-use when they are leased from the pool. An in-use channel is not eligible to be closed by IdleConnectionReaperHandler or OldConnectionReaperHandler.| Modifier and Type | Method and Description |
|---|---|
void |
channelAcquired(io.netty.channel.Channel channel)
Called after a
Channel was acquired by calling ChannelPool.acquire() or ChannelPool.acquire(Promise). |
void |
channelReleased(io.netty.channel.Channel channel)
Called before a
Channel is released by calling ChannelPool.release(Channel) or ChannelPool.release(Channel, Promise). |
static InUseTrackingChannelPoolListener |
create() |
public static InUseTrackingChannelPoolListener create()
public void channelAcquired(io.netty.channel.Channel channel)
ListenerInvokingChannelPool.ChannelPoolListenerChannel was acquired by calling ChannelPool.acquire() or ChannelPool.acquire(Promise).
This method will be called by the EventLoop of the Channel.
channelAcquired in interface ListenerInvokingChannelPool.ChannelPoolListenerpublic void channelReleased(io.netty.channel.Channel channel)
ListenerInvokingChannelPool.ChannelPoolListenerChannel is released by calling ChannelPool.release(Channel) or ChannelPool.release(Channel, Promise).
This method will be called by the EventLoop of the Channel.
channelReleased in interface ListenerInvokingChannelPool.ChannelPoolListenerCopyright © 2022. All rights reserved.