com.sun.xml.ws.transport.tcp.connectioncache.impl.transport
Class ConnectionCacheBase<C extends Connection>
java.lang.Object
com.sun.xml.ws.transport.tcp.connectioncache.impl.transport.ConnectionCacheBase<C>
- All Implemented Interfaces:
- ConnectionCache<C>
- Direct Known Subclasses:
- InboundConnectionCacheBlockingImpl, OutboundConnectionCacheBlockingImpl
public abstract class ConnectionCacheBase<C extends Connection>
- extends java.lang.Object
- implements ConnectionCache<C>
Method Summary |
protected boolean |
debug()
|
protected void |
dprint(java.lang.String msg)
|
void |
dprintStatistics()
|
java.lang.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 java.lang.String |
thisClassName()
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
logger
protected final java.util.logging.Logger logger
reclaimableConnections
protected ConcurrentQueue<C extends Connection> reclaimableConnections
debug
protected boolean debug()
getCacheType
public final java.lang.String getCacheType()
- Description copied from interface:
ConnectionCache
- User-provided indentifier for an instance of the
OutboundConnectionCache.
- Specified by:
getCacheType
in interface ConnectionCache<C extends Connection>
numberToReclaim
public final int numberToReclaim()
- Description copied from interface:
ConnectionCache
- Number of connections to reclaim each time reclamation starts.
- Specified by:
numberToReclaim
in interface ConnectionCache<C extends Connection>
highWaterMark
public final int highWaterMark()
- Description copied from interface:
ConnectionCache
- Threshold at which connection reclamation begins.
- Specified by:
highWaterMark
in interface ConnectionCache<C extends Connection>
thisClassName
protected abstract java.lang.String thisClassName()
dprint
protected final void dprint(java.lang.String msg)
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
dprintStatistics
public void dprintStatistics()
reclaim
protected boolean reclaim()
- Reclaim some idle cached connections. Will never
close a connection that is busy.