|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ConnectionCache<C extends Closeable>
A connection cache manages a group of connections which may be re-used for sending and receiving messages.
Method Summary | |
---|---|
void |
close(C conn)
Close a connection, regardless of its state. |
String |
getCacheType()
User-provided indentifier for an instance of the ConnectionCache . |
int |
highWaterMark()
Threshold at which connection reclamation begins. |
long |
numberOfBusyConnections()
Number of non-idle connections. |
long |
numberOfConnections()
Total number of connections currently managed by the cache. |
long |
numberOfIdleConnections()
Number of idle connections; that is, connections for which the number of get/release or responseReceived/responseProcessed calls are equal. |
long |
numberOfReclaimableConnections()
Number of idle connections that are reclaimable. |
int |
numberToReclaim()
Number of connections to reclaim each time reclamation starts. |
Method Detail |
---|
String getCacheType()
ConnectionCache
.
String
identifying an instance of a ConnectionCache
long numberOfConnections()
long numberOfIdleConnections()
long numberOfBusyConnections()
long numberOfReclaimableConnections()
int highWaterMark()
int numberToReclaim()
void close(C conn)
conn
- a connection
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |