public abstract class ConnectionCacheBase<C extends Connection> extends Object implements ConnectionCache<C>
| Modifier and Type | Field and Description |
|---|---|
protected Logger |
logger |
protected ConcurrentQueue<C> |
reclaimableConnections |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
debug() |
protected void |
dprint(String msg) |
void |
dprintStatistics() |
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 final Logger logger
protected ConcurrentQueue<C extends Connection> reclaimableConnections
protected boolean debug()
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 final void dprint(String msg)
public void dprintStatistics()
protected boolean reclaim()
Copyright © 2005–2018 Oracle Corporation. All rights reserved.