public interface ChannelPool
| Modifier and Type | Method and Description |
|---|---|
void |
destroy()
Destroy all channels that has been cached by this instance.
|
void |
flushPartition(Object partitionKey)
Flush a partition
|
void |
flushPartitions(ChannelPoolPartitionSelector selector)
Flush partitions based on a selector
|
boolean |
isOpen()
Return true if a channel can be cached.
|
boolean |
offer(Channel channel,
Object partitionKey)
Add a channel to the pool
|
Channel |
poll(Object partitionKey)
Remove the channel associated with the uri.
|
boolean |
removeAll(Channel channel)
Remove all channels from the cache.
|
boolean offer(Channel channel, Object partitionKey)
channel - an I/O channelpartitionKey - a key used to retrieve the cached channelChannel poll(Object partitionKey)
partitionKey - the partition used when invoking offerboolean removeAll(Channel channel)
channel - a channelboolean isOpen()
offer(Channel, Object)void destroy()
void flushPartition(Object partitionKey)
partitionKey - the partitionvoid flushPartitions(ChannelPoolPartitionSelector selector)
selector - the selectorCopyright © 2016. All Rights Reserved.