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.
|
boolean |
isOpen()
Return true if a connection can be cached.
|
boolean |
offer(org.jboss.netty.channel.Channel connection,
String poolKey)
Add a connection to the pool
|
org.jboss.netty.channel.Channel |
poll(String uri)
Remove the connection associated with the uri.
|
boolean |
removeAll(org.jboss.netty.channel.Channel connection)
Remove all connections from the cache.
|
boolean offer(org.jboss.netty.channel.Channel connection, String poolKey)
poolKey
- a key used to retrieve the cached connectionconnection
- an I/O connectionorg.jboss.netty.channel.Channel poll(String uri)
uri
- the uri used when invoking addConnectionboolean removeAll(org.jboss.netty.channel.Channel connection)
connection
- a connectionboolean isOpen()
ChannelPool#offer(Object, Object)
void destroy()
Copyright © 2014. All Rights Reserved.