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
MarksChannels as in-use when they are leased from the pool. An in-use channel is not eligible to be closed byIdleConnectionReaperHandlerorOldConnectionReaperHandler.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidchannelAcquired(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).static InUseTrackingChannelPoolListenercreate()
-
-
-
Method Detail
-
create
public static InUseTrackingChannelPoolListener 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
-
-