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>
-
-
Field Summary
Fields Modifier and Type Field Description protected Loggerloggerprotected ConcurrentQueue<C>reclaimableConnections
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected booleandebug()protected voiddprint(String msg)voiddprintStatistics()StringgetCacheType()User-provided indentifier for an instance of the OutboundConnectionCache.inthighWaterMark()Threshold at which connection reclamation begins.intnumberToReclaim()Number of connections to reclaim each time reclamation starts.protected booleanreclaim()Reclaim some idle cached connections.protected abstract StringthisClassName()StringtoString()-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface com.sun.xml.ws.transport.tcp.connectioncache.spi.transport.ConnectionCache
close, numberOfBusyConnections, numberOfConnections, numberOfIdleConnections, numberOfReclaimableConnections
-
-
-
-
Field Detail
-
logger
protected final Logger logger
-
reclaimableConnections
protected ConcurrentQueue<C extends Connection> reclaimableConnections
-
-
Method Detail
-
debug
protected boolean debug()
-
getCacheType
public final String getCacheType()
Description copied from interface:ConnectionCacheUser-provided indentifier for an instance of the OutboundConnectionCache.- Specified by:
getCacheTypein interfaceConnectionCache<C extends Connection>
-
numberToReclaim
public final int numberToReclaim()
Description copied from interface:ConnectionCacheNumber of connections to reclaim each time reclamation starts.- Specified by:
numberToReclaimin interfaceConnectionCache<C extends Connection>
-
highWaterMark
public final int highWaterMark()
Description copied from interface:ConnectionCacheThreshold at which connection reclamation begins.- Specified by:
highWaterMarkin interfaceConnectionCache<C extends Connection>
-
thisClassName
protected abstract String thisClassName()
-
dprint
protected final void dprint(String msg)
-
dprintStatistics
public void dprintStatistics()
-
reclaim
protected boolean reclaim()
Reclaim some idle cached connections. Will never close a connection that is busy.
-
-