|
||||||||||
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 |
canCacheConnection()
Return true if a connection can be cached. |
void |
destroy()
Destroy all connections that has been cached by this instance. |
boolean |
offer(U uri,
V connection)
Add a connection tpo the pool |
V |
poll(U uri)
Remove the connection associated with the uri. |
boolean |
removeAll(V connection)
Remove all connections from the cache. |
Method Detail |
---|
boolean offer(U uri, V connection)
uri
- a uri used to retrieve the cached connectionconnection
- an I/O connection
V poll(U uri)
uri
- the uri used when invoking addConnection
boolean removeAll(V connection)
connection
- a connection
boolean canCacheConnection()
offer(Object, Object)
void destroy()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |