Class ConnectionCacheBlockingBase<C extends Connection>

    • Field Detail

      • totalBusy

        protected int totalBusy
      • totalIdle

        protected int totalIdle
    • Constructor Detail

      • ConnectionCacheBlockingBase

        ConnectionCacheBlockingBase​(java.lang.String cacheType,
                                    int highWaterMark,
                                    int numberToReclaim,
                                    long ttl)
    • 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