public abstract class ConnectionCacheBase<C extends Connection> extends Object implements ConnectionCache<C>
| Modifier and Type | Field and Description |
|---|---|
protected ConcurrentQueue<C> |
reclaimableConnections |
| Modifier and Type | Method and Description |
|---|---|
String |
getCacheType()
User-provided indentifier for an instance of the
OutboundConnectionCache.
|
int |
highWaterMark()
Threshold at which connection reclamation begins.
|
int |
numberToReclaim()
Number of connections to reclaim each time reclamation starts.
|
protected boolean |
reclaim()
Reclaim some idle cached connections.
|
protected abstract String |
thisClassName() |
String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitclose, numberOfBusyConnections, numberOfConnections, numberOfIdleConnections, numberOfReclaimableConnectionsprotected ConcurrentQueue<C extends Connection> reclaimableConnections
public final String getCacheType()
ConnectionCachegetCacheType in interface ConnectionCache<C extends Connection>public final int numberToReclaim()
ConnectionCachenumberToReclaim in interface ConnectionCache<C extends Connection>public final int highWaterMark()
ConnectionCachehighWaterMark in interface ConnectionCache<C extends Connection>protected abstract String thisClassName()
protected boolean reclaim()
Copyright © 2017–2019 Eclipse Foundation. All rights reserved.