public class NoopChannelPool extends Object implements ChannelPool
| Constructor and Description |
|---|
NoopChannelPool() |
| Modifier and Type | Method and Description |
|---|---|
void |
destroy()
Destroy all connections 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 connection can be cached.
|
boolean |
offer(org.jboss.netty.channel.Channel connection,
Object partitionKey)
Add a connection to the pool
|
org.jboss.netty.channel.Channel |
poll(Object partitionKey)
Get a connection from a partition
|
boolean |
removeAll(org.jboss.netty.channel.Channel connection)
Remove all connections from the cache.
|
public boolean offer(org.jboss.netty.channel.Channel connection,
Object partitionKey)
ChannelPooloffer in interface ChannelPoolconnection - an I/O connectionpublic org.jboss.netty.channel.Channel poll(Object partitionKey)
ChannelPoolpoll in interface ChannelPoolpublic boolean removeAll(org.jboss.netty.channel.Channel connection)
ChannelPoolremoveAll in interface ChannelPoolconnection - a connectionpublic boolean isOpen()
ChannelPoolChannelPool#offer(Object, Object)isOpen in interface ChannelPoolpublic void destroy()
ChannelPooldestroy in interface ChannelPoolpublic void flushPartition(Object partitionKey)
ChannelPoolflushPartition in interface ChannelPoolpublic void flushPartitions(ChannelPoolPartitionSelector selector)
ChannelPoolflushPartitions in interface ChannelPoolCopyright © 2015. All Rights Reserved.