Class ConnectionCacheBase<C extends Connection>
java.lang.Object
com.sun.corba.ee.impl.transport.connection.ConnectionCacheBase<C>
- All Implemented Interfaces:
ConnectionCache<C>
- Direct Known Subclasses:
InboundConnectionCacheBlockingImpl, InboundConnectionCacheImpl, OutboundConnectionCacheBlockingImpl, OutboundConnectionCacheImpl
public abstract class ConnectionCacheBase<C extends Connection>
extends Object
implements ConnectionCache<C>
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionfinal StringUser-provided identifier for an instance of the OutboundConnectionCache.final intThreshold at which connection reclamation begins.final intNumber of connections to reclaim each time reclamation starts.protected booleanreclaim()Reclaim some idle cached connections.protected abstract StringtoString()Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface ConnectionCache
close, numberOfBusyConnections, numberOfConnections, numberOfIdleConnections, numberOfReclaimableConnections
-
Field Details
-
reclaimableConnections
-
-
Method Details
-
getCacheType
Description copied from interface:ConnectionCacheUser-provided identifier for an instance of the OutboundConnectionCache.- Specified by:
getCacheTypein interfaceConnectionCache<C extends Connection>- Returns:
- identifier String
-
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>- Returns:
- number to reclaim
-
highWaterMark
public final int highWaterMark()Description copied from interface:ConnectionCacheThreshold at which connection reclamation begins.- Specified by:
highWaterMarkin interfaceConnectionCache<C extends Connection>- Returns:
- threshold
-
thisClassName
-
toString
-
reclaim
protected boolean reclaim()Reclaim some idle cached connections. Will never close a connection that is busy.- Returns:
- True if at least one connection was reclaimed
-