public interface ConnectionCache<C extends Connection>
| Modifier and Type | Method and Description |
|---|---|
void |
close(C conn)
Close a connection, regardless of its state.
|
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.
|
String getCacheType()
long numberOfConnections()
long numberOfIdleConnections()
long numberOfBusyConnections()
long numberOfReclaimableConnections()
int highWaterMark()
int numberToReclaim()
void close(C conn)
Copyright © 2017–2019 Eclipse Foundation. All rights reserved.