Class ConnectionCacheBlockingBase<C extends Connection>
java.lang.Object
com.sun.corba.ee.impl.transport.connection.ConnectionCacheBase<C>
com.sun.corba.ee.impl.transport.connection.ConnectionCacheBlockingBase<C>
- All Implemented Interfaces:
ConnectionCache<C>
- Direct Known Subclasses:
InboundConnectionCacheBlockingImpl
,OutboundConnectionCacheBlockingImpl
-
Field Summary
FieldsFields inherited from class com.sun.corba.ee.impl.transport.connection.ConnectionCacheBase
reclaimableConnections
-
Constructor Summary
ConstructorsConstructorDescriptionConnectionCacheBlockingBase
(String cacheType, int highWaterMark, int numberToReclaim, long ttl) -
Method Summary
Modifier and TypeMethodDescriptionlong
Number of non-idle connections.long
Total number of connections currently managed by the cache.long
Number of idle connections; that is, connections for which the number of get/release or responseReceived/responseProcessed calls are equal.long
Number of idle connections that are reclaimable.Methods inherited from class com.sun.corba.ee.impl.transport.connection.ConnectionCacheBase
getCacheType, highWaterMark, numberToReclaim, reclaim, thisClassName, toString
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.sun.corba.ee.spi.transport.connection.ConnectionCache
close
-
Field Details
-
totalBusy
protected int totalBusy -
totalIdle
protected int totalIdle
-
-
Constructor Details
-
ConnectionCacheBlockingBase
ConnectionCacheBlockingBase(String cacheType, int highWaterMark, int numberToReclaim, long ttl)
-
-
Method Details
-
numberOfConnections
public long numberOfConnections()Description copied from interface:ConnectionCache
Total number of connections currently managed by the cache.- Returns:
- number of connections
-
numberOfIdleConnections
public long numberOfIdleConnections()Description copied from interface:ConnectionCache
Number of idle connections; that is, connections for which the number of get/release or responseReceived/responseProcessed calls are equal.- Returns:
- number of idle connections
-
numberOfBusyConnections
public long numberOfBusyConnections()Description copied from interface:ConnectionCache
Number of non-idle connections. Normally, busy+idle==total, but this may not be strictly true due to concurrent updates to the connection cache.- Returns:
- number of non-idle connections
-
numberOfReclaimableConnections
public long numberOfReclaimableConnections()Description copied from interface:ConnectionCache
Number of idle connections that are reclaimable. Such connections are not in use, and are not waiting to handle any responses.- Returns:
- number of reclaimable idle connections
-