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
abstract class ConnectionCacheNonBlockingBase<C extends Connection> extends ConnectionCacheBase<C>
-
-
Field Summary
Fields Modifier and Type Field Description protected java.util.concurrent.atomic.AtomicInteger
totalBusy
protected java.util.concurrent.atomic.AtomicInteger
totalIdle
-
Fields inherited from class com.sun.corba.ee.impl.transport.connection.ConnectionCacheBase
reclaimableConnections
-
-
Constructor Summary
Constructors Constructor Description ConnectionCacheNonBlockingBase(java.lang.String cacheType, int highWaterMark, int numberToReclaim, long ttl)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description long
numberOfBusyConnections()
Number of non-idle connections.long
numberOfConnections()
Total number of connections currently managed by the cache.long
numberOfIdleConnections()
Number of idle connections; that is, connections for which the number of get/release or responseReceived/responseProcessed calls are equal.long
numberOfReclaimableConnections()
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
-
-
-
-
Method Detail
-
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
-
-