|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ConnectionCache<C extends Connection>
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. |
java.lang.String |
getCacheType()
User-provided indentifier for an instance of the OutboundConnectionCache. |
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 |
---|
java.lang.String getCacheType()
long numberOfConnections()
long numberOfIdleConnections()
long numberOfBusyConnections()
long numberOfReclaimableConnections()
int highWaterMark()
int numberToReclaim()
void close(C conn)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |