Class ConnectionCacheNonBlockingBase<C extends Connection>
java.lang.Object
com.sun.corba.ee.impl.transport.connection.ConnectionCacheBase<C>
com.sun.corba.ee.impl.transport.connection.ConnectionCacheNonBlockingBase<C>
- All Implemented Interfaces:
ConnectionCache<C>
- Direct Known Subclasses:
InboundConnectionCacheImpl, OutboundConnectionCacheImpl
-
Field Summary
FieldsFields inherited from class ConnectionCacheBase
reclaimableConnections -
Constructor Summary
ConstructorsConstructorDescriptionConnectionCacheNonBlockingBase(String cacheType, int highWaterMark, int numberToReclaim, long ttl) -
Method Summary
Modifier and TypeMethodDescriptionlongNumber of non-idle connections.longTotal number of connections currently managed by the cache.longNumber of idle connections; that is, connections for which the number of get/release or responseReceived/responseProcessed calls are equal.longNumber of idle connections that are reclaimable.Methods inherited from class ConnectionCacheBase
getCacheType, highWaterMark, numberToReclaim, reclaim, thisClassName, toStringMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface ConnectionCache
close
-
Field Details
-
totalBusy
-
totalIdle
-
-
Constructor Details
-
ConnectionCacheNonBlockingBase
ConnectionCacheNonBlockingBase(String cacheType, int highWaterMark, int numberToReclaim, long ttl)
-
-
Method Details
-
numberOfConnections
public long numberOfConnections()Description copied from interface:ConnectionCacheTotal number of connections currently managed by the cache.- Returns:
- number of connections
-
numberOfIdleConnections
public long numberOfIdleConnections()Description copied from interface:ConnectionCacheNumber 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:ConnectionCacheNumber 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:ConnectionCacheNumber 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
-