public interface ChannelPool
AsyncHttpProvider for caching http connections.| Modifier and Type | Method and Description |
|---|---|
void |
destroy()
Destroy all connections that has been cached by this instance.
|
void |
flushPartition(String partitionId)
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,
String partition)
Add a connection to the pool
|
org.jboss.netty.channel.Channel |
poll(String partition)
Get a connection from a partition
|
boolean |
removeAll(org.jboss.netty.channel.Channel connection)
Remove all connections from the cache.
|
boolean offer(org.jboss.netty.channel.Channel connection,
String partition)
partition - a key used to retrieve the cached connectionconnection - an I/O connectionorg.jboss.netty.channel.Channel poll(String partition)
partition - the id of the partition used when invoking offerboolean removeAll(org.jboss.netty.channel.Channel connection)
connection - a connectionboolean isOpen()
ChannelPool#offer(Object, Object)void destroy()
void flushPartition(String partitionId)
partitionId - void flushPartitions(ChannelPoolPartitionSelector selector)
selector - Copyright © 2015. All Rights Reserved.