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.
|
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.
|
public boolean offer(org.jboss.netty.channel.Channel connection,
String poolKey)
ChannelPooloffer in interface ChannelPoolconnection - an I/O connectionpoolKey - a key used to retrieve the cached connectionpublic org.jboss.netty.channel.Channel poll(String uri)
ChannelPoolpoll in interface ChannelPooluri - the uri used when invoking addConnectionpublic 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 ChannelPoolCopyright © 2014. All Rights Reserved.