ChannelPoolMap implementation. To find the right ChannelPool
the Object#hashCode() and Object#equals(Object) is used.
| Modifier and Type | Field and Description |
|---|---|
| private final ConcurrentMap |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public final void | close()
Implements java. |
| public final boolean | contains(K key)
Implements io. true if a ChannelPool exists for the given key.
|
| public final P | |
| public final boolean | |
| public final Iterator | |
| protected abstract P | |
| private static Future | poolCloseAsyncIfSupported(ChannelPool
the ChannelPool to be closed pool)If the pool implementation supports asynchronous close, then use it to avoid a blocking close call in case the ChannelPoolMap operations are called from an EventLoop. |
| public final boolean | |
| private Future | |
| public final int |
| map | back to summary |
|---|---|
| private final ConcurrentMap<K, P> map | |
| AbstractChannelPoolMap | back to summary |
|---|---|
| public AbstractChannelPoolMap() | |
| close | back to summary |
|---|---|
| public final void close() Implements java. Doc from java. Closes this stream and releases any system resources associated with it. If the stream is already closed then invoking this method has no effect. As noted in
| |
| contains | back to summary |
|---|---|
| public final boolean contains(K key) Implements io. Doc from io. Returns
| |
| get | back to summary |
|---|---|
| public final P get(K key) Implements io. Doc from io. Return the
| |
| isEmpty | back to summary |
|---|---|
| public final boolean isEmpty() Returns | |
| iterator | back to summary |
|---|---|
| public final Iterator Implements java. Doc from java. Returns an iterator over elements of type | |
| newPool | back to summary |
|---|---|
| protected abstract P newPool(K key) Called once a new | |
| poolCloseAsyncIfSupported | back to summary |
|---|---|
| private static Future If the pool implementation supports asynchronous close, then use it to avoid a blocking close call in case the ChannelPoolMap operations are called from an EventLoop.
| |
| remove | back to summary |
|---|---|
| public final boolean remove(K key) Remove the | |
| removeAsyncIfSupported | back to summary |
|---|---|
| private Future Remove the | |
| size | back to summary |
|---|---|
| public final int size() Returns the number of | |