com.ning.http.client.ConnectionsPool<U, V> |
![]() |
An interface used by an AsyncHttpProvider
for caching http connections.
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Return true if a connection can be cached.
| |||||||||||
Destroy all connections that has been cached by this instance.
| |||||||||||
Add a connection tpo the pool
| |||||||||||
Remove the connection associated with the uri.
| |||||||||||
Remove all connections from the cache.
|
Return true if a connection can be cached. A implementation can decide based on some rules to allow caching
Calling this method is equivalent of checking the returned value of offer(Object, Object)
Destroy all connections that has been cached by this instance.
Add a connection tpo the pool
uri | a uri used to retrieve the cached connection |
---|---|
connection | an I/O connection |
Remove the connection associated with the uri.
uri | the uri used when invoking addConnection |
---|
Remove all connections from the cache. A connection might have been associated with several uri.
connection | a connection |
---|