Class InUseTrackingChannelPoolListener
java.lang.Object
software.amazon.awssdk.http.nio.netty.internal.InUseTrackingChannelPoolListener
- All Implemented Interfaces:
ListenerInvokingChannelPool.ChannelPoolListener
public final class InUseTrackingChannelPoolListener
extends Object
implements ListenerInvokingChannelPool.ChannelPoolListener
Marks
Channel
s as in-use when they are leased from the pool. An in-use channel is not eligible to be closed by IdleConnectionReaperHandler
or OldConnectionReaperHandler
.-
Method Summary
Modifier and TypeMethodDescriptionvoid
channelAcquired
(io.netty.channel.Channel channel) Called after aChannel
was acquired by callingChannelPool.acquire()
orChannelPool.acquire(Promise)
.void
channelReleased
(io.netty.channel.Channel channel) Called before aChannel
is released by callingChannelPool.release(Channel)
orChannelPool.release(Channel, Promise)
.create()
-
Method Details
-
create
-
channelAcquired
public void channelAcquired(io.netty.channel.Channel channel) Description copied from interface:ListenerInvokingChannelPool.ChannelPoolListener
Called after aChannel
was acquired by callingChannelPool.acquire()
orChannelPool.acquire(Promise)
.This method will be called by the
EventLoop
of theChannel
.- Specified by:
channelAcquired
in interfaceListenerInvokingChannelPool.ChannelPoolListener
-
channelReleased
public void channelReleased(io.netty.channel.Channel channel) Description copied from interface:ListenerInvokingChannelPool.ChannelPoolListener
Called before aChannel
is released by callingChannelPool.release(Channel)
orChannelPool.release(Channel, Promise)
.This method will be called by the
EventLoop
of theChannel
.- Specified by:
channelReleased
in interfaceListenerInvokingChannelPool.ChannelPoolListener
-