Class HttpManagerMetrics


  • public class HttpManagerMetrics
    extends Object
    • Method Detail

      • getAvailableConcurrency

        public long getAvailableConcurrency()
        Returns:
        The number of additional concurrent requests that can be supported by the HTTP manager without needing to establish additional connections to the target server.

        For connection manager, this value represents idle connections. For stream manager, this value represents the number of streams that are possible to be made without creating new connections, although the implementation can create new connection without fully filling it.

      • getPendingConcurrencyAcquires

        public long getPendingConcurrencyAcquires()
        Returns:
        The number of requests that are awaiting concurrency to be made available from the HTTP manager.
      • getLeasedConcurrency

        public long getLeasedConcurrency()
        Returns:
        the amount of concurrency units currently out for lease. For http 1.1 this will be connections while for http2 this will be number of streams leased out.