Class HttpConnectionPoolStats

    • Constructor Detail

      • HttpConnectionPoolStats

        public HttpConnectionPoolStats​(io.tehuti.metrics.MetricsRepository metricsRepository,
                                       java.lang.String name)
    • Method Detail

      • addConnectionPoolManager

        public void addConnectionPoolManager​(org.apache.http.impl.nio.conn.PoolingNHttpClientConnectionManager connectionManager)
      • removeConnectionPoolManager

        public void removeConnectionPoolManager​(org.apache.http.impl.nio.conn.PoolingNHttpClientConnectionManager connectionManager)
      • addStatsForRoute

        public void addStatsForRoute​(java.lang.String hostName)
        This function is used to gradually populate per-route stats.
        Parameters:
        hostName -
      • recordConnectionLeaseRequestLatency

        public void recordConnectionLeaseRequestLatency​(long latency)
      • recordPendingRequestCount

        public void recordPendingRequestCount​(long pendingRequestCount)
      • getPendingRequestCount

        public long getPendingRequestCount​(java.lang.String hostname)