public class MessageChannelPoolMap extends Object implements NettyChannelPoolMap<Object,NettyChannelPool>, Iterable<Map.Entry<Object,NettyChannelPool>>
ChannelPoolMap implementation that allows a custom pool key to be used for NettyChannelPool lookup.| Constructor and Description |
|---|
MessageChannelPoolMap(NettyPooledChannelFactory pooledChannelFactory)
Constructor for MessageChannelPoolMap.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
boolean |
contains(Object data)
|
NettyChannelPool |
get(Object data)
Return the
NettyChannelPool for the code. |
NettyChannelPoolFactory |
getChannelPoolFactory()
getChannelPoolFactory.
|
NettyPoolPropertyResolver |
getResolver()
getResolver.
|
@NotNull Iterator<Map.Entry<Object,NettyChannelPool>> |
iterator() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEach, spliteratorpublic MessageChannelPoolMap(NettyPooledChannelFactory pooledChannelFactory)
Constructor for MessageChannelPoolMap.
pooledChannelFactory - a NettyPooledChannelFactory objectpublic NettyChannelPool get(Object data)
NettyChannelPool for the code. This will never return null,
but create a new NettyChannelPool if non exists for they requested key.
Please note that null keys are not allowed.
get in interface NettyChannelPoolMap<Object,NettyChannelPool>data - a K objectpublic boolean contains(Object data)
true if a NettyChannelPool exists for the given key.
Please note that null keys are not allowed.
contains in interface NettyChannelPoolMap<Object,NettyChannelPool>data - a K objectpublic NettyPoolPropertyResolver getResolver()
getResolver.
NettyPoolPropertyResolver objectpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableIOExceptionpublic NettyChannelPoolFactory getChannelPoolFactory()
getChannelPoolFactory.
NettyChannelPoolFactory object@NotNull public @NotNull Iterator<Map.Entry<Object,NettyChannelPool>> iterator()
iterator in interface Iterable<Map.Entry<Object,NettyChannelPool>>Copyright © 2016–2024. All rights reserved.