public class NoopChannelPool extends Object implements ChannelPool
| Constructor and Description |
|---|
NoopChannelPool() |
| 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(io.netty.channel.Channel channel,
Object partitionKey)
Add a channel to the pool
|
io.netty.channel.Channel |
poll(Object partitionKey)
Remove the channel associated with the uri.
|
boolean |
removeAll(io.netty.channel.Channel channel)
Remove all channels from the cache.
|
public boolean offer(io.netty.channel.Channel channel,
Object partitionKey)
ChannelPooloffer in interface ChannelPoolchannel - an I/O channelpartitionKey - a key used to retrieve the cached channelpublic io.netty.channel.Channel poll(Object partitionKey)
ChannelPoolpoll in interface ChannelPoolpartitionKey - the partition used when invoking offerpublic boolean removeAll(io.netty.channel.Channel channel)
ChannelPoolremoveAll in interface ChannelPoolchannel - a channelpublic boolean isOpen()
ChannelPoolChannelPool.offer(Channel, Object)isOpen in interface ChannelPoolpublic void destroy()
ChannelPooldestroy in interface ChannelPoolpublic void flushPartition(Object partitionKey)
ChannelPoolflushPartition in interface ChannelPoolpartitionKey - the partitionpublic void flushPartitions(ChannelPoolPartitionSelector selector)
ChannelPoolflushPartitions in interface ChannelPoolselector - the selectorCopyright © 2015. All Rights Reserved.