|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ConnectionsPool<U,V>
An interface used by an AsyncHttpProvider
for caching http connections.
Method Summary | |
---|---|
boolean |
addConnection(U uri,
V 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. |
V |
getConnection(U uri)
Return the connection associated with the uri |
boolean |
removeAllConnections(V connection)
Remove all connections from the cache. |
V |
removeConnection(U uri)
Remove the connection associated with the uri. |
Method Detail |
---|
boolean addConnection(U uri, V connection)
uri
- a uri used to retrieve the cached connectionconnection
- an I/O connection
V getConnection(U uri)
uri
- the uri used when invoking addConnection
V removeConnection(U uri)
uri
- the uri used when invoking addConnection
boolean removeAllConnections(V connection)
connection
- a connection
boolean canCacheConnection()
addConnection(Object, Object)
void destroy()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |