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 Object
- implements ConnectionCache<C>
logger
protected final Logger logger
reclaimableConnections
protected ConcurrentQueue<C extends Connection> reclaimableConnections
debug
protected boolean debug()
getCacheType
public final 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 String thisClassName()
dprint
protected final void dprint(String msg)
toString
public String toString()
- Overrides:
toString in class Object
dprintStatistics
public void dprintStatistics()
reclaim
protected boolean reclaim()
- Reclaim some idle cached connections. Will never
close a connection that is busy.
Copyright © 2005-2015 Oracle Corporation. All Rights Reserved.