|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.ning.http.client.providers.grizzly.GrizzlyConnectionsPool
public class GrizzlyConnectionsPool
ConnectionsPool implementation.
| Constructor Summary | |
|---|---|
GrizzlyConnectionsPool(AsyncHttpClientConfig config)
|
|
| Method Summary | |
|---|---|
boolean |
canCacheConnection()
Return true if a connection can be cached. |
void |
destroy()
Destroy all connections that has been cached by this instance. |
boolean |
offer(String uri,
org.glassfish.grizzly.Connection connection)
Add a connection tpo the pool |
org.glassfish.grizzly.Connection |
poll(String uri)
Remove the connection associated with the uri. |
boolean |
removeAll(org.glassfish.grizzly.Connection connection)
Remove all connections from the cache. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public GrizzlyConnectionsPool(AsyncHttpClientConfig config)
| Method Detail |
|---|
public boolean offer(String uri,
org.glassfish.grizzly.Connection connection)
offer in interface ConnectionsPool<String,org.glassfish.grizzly.Connection>uri - a uri used to retrieve the cached connectionconnection - an I/O connection
public org.glassfish.grizzly.Connection poll(String uri)
poll in interface ConnectionsPool<String,org.glassfish.grizzly.Connection>uri - the uri used when invoking addConnection
public boolean removeAll(org.glassfish.grizzly.Connection connection)
removeAll in interface ConnectionsPool<String,org.glassfish.grizzly.Connection>connection - a connection
public boolean canCacheConnection()
ConnectionsPool.offer(Object, Object)
canCacheConnection in interface ConnectionsPool<String,org.glassfish.grizzly.Connection>public void destroy()
destroy in interface ConnectionsPool<String,org.glassfish.grizzly.Connection>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||