Class InUseTrackingChannelPoolListener
java.lang.Object
software.amazon.awssdk.http.nio.netty.internal.InUseTrackingChannelPoolListener
- All Implemented Interfaces:
ListenerInvokingChannelPool.ChannelPoolListener
@SdkInternalApi
public final class InUseTrackingChannelPoolListener
extends Object
implements ListenerInvokingChannelPool.ChannelPoolListener
Marks
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.-
Method Summary
Modifier and TypeMethodDescriptionvoidchannelAcquired(io.netty.channel.Channel channel) Called after aChannelwas acquired by callingChannelPool.acquire()orChannelPool.acquire(Promise).voidchannelReleased(io.netty.channel.Channel channel) Called before aChannelis 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.ChannelPoolListenerCalled after aChannelwas acquired by callingChannelPool.acquire()orChannelPool.acquire(Promise).This method will be called by the
EventLoopof theChannel.- Specified by:
channelAcquiredin interfaceListenerInvokingChannelPool.ChannelPoolListener
-
channelReleased
public void channelReleased(io.netty.channel.Channel channel) Description copied from interface:ListenerInvokingChannelPool.ChannelPoolListenerCalled before aChannelis released by callingChannelPool.release(Channel)orChannelPool.release(Channel, Promise).This method will be called by the
EventLoopof theChannel.- Specified by:
channelReleasedin interfaceListenerInvokingChannelPool.ChannelPoolListener
-