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 Details

  • Constructor Details

    • ConnectionCacheNonBlockingBase

      ConnectionCacheNonBlockingBase(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