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