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
AbstractChannelPoolMap. This implementation guarantees
only one instance of a ChannelPool is created for each key.| Constructor and Description |
|---|
SdkChannelPoolMap() |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
boolean |
contains(K key) |
P |
get(K key) |
boolean |
isEmpty()
Returns
true if the AbstractChannelPoolMap is empty, otherwise false. |
Iterator<Map.Entry<K,P>> |
iterator() |
boolean |
remove(K key)
Remove the
ChannelPool from this AbstractChannelPoolMap. |
int |
size()
Returns the number of
ChannelPools currently in this AbstractChannelPoolMap. |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEach, spliteratorpublic final boolean remove(K key)
ChannelPool from this AbstractChannelPoolMap. Returns true if
removed, false otherwise.
Please note that null keys are not allowed.public final int size()
ChannelPools currently in this AbstractChannelPoolMap.public final boolean isEmpty()
true if the AbstractChannelPoolMap is empty, otherwise false.public final boolean contains(K key)
public final void close()
close in interface Closeableclose in interface AutoCloseableCopyright © 2017 Amazon Web Services, Inc. All Rights Reserved.