Class SdkChannelPoolMap<K,P extends io.netty.channel.pool.ChannelPool>
java.lang.Object
software.amazon.awssdk.http.nio.netty.internal.SdkChannelPoolMap<K,P>
- All Implemented Interfaces:
io.netty.channel.pool.ChannelPoolMap<K,
,P> Closeable
,AutoCloseable
,Iterable<Map.Entry<K,
P>>
- Direct Known Subclasses:
AwaitCloseChannelPoolMap
public abstract class SdkChannelPoolMap<K,P extends io.netty.channel.pool.ChannelPool>
extends Object
implements io.netty.channel.pool.ChannelPoolMap<K,P>, Iterable<Map.Entry<K,P>>, Closeable
Replacement for
AbstractChannelPoolMap
. This implementation guarantees
only one instance of a ChannelPool
is created for each key.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
final boolean
final P
final boolean
isEmpty()
Returnstrue
if theAbstractChannelPoolMap
is empty, otherwisefalse
.iterator()
pools()
final boolean
Remove theChannelPool
from thisAbstractChannelPoolMap
.final int
size()
Returns the number ofChannelPool
s currently in thisAbstractChannelPoolMap
.Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
Constructor Details
-
SdkChannelPoolMap
public SdkChannelPoolMap()
-
-
Method Details
-
get
-
remove
Remove theChannelPool
from thisAbstractChannelPoolMap
. Returnstrue
if removed,false
otherwise. Please note thatnull
keys are not allowed. -
iterator
-
size
public final int size()Returns the number ofChannelPool
s currently in thisAbstractChannelPoolMap
. -
isEmpty
public final boolean isEmpty()Returnstrue
if theAbstractChannelPoolMap
is empty, otherwisefalse
. -
contains
-
close
public void close()- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
-
pools
-