Class InstrumentedAsyncClientConnectionManager

java.lang.Object
org.apache.hc.client5.http.impl.nio.PoolingAsyncClientConnectionManager
com.codahale.metrics.httpclient5.InstrumentedAsyncClientConnectionManager
All Implemented Interfaces:
Closeable, AutoCloseable, org.apache.hc.client5.http.nio.AsyncClientConnectionManager, org.apache.hc.core5.io.ModalCloseable, org.apache.hc.core5.pool.ConnPoolControl<org.apache.hc.client5.http.HttpRoute>, org.apache.hc.core5.pool.ConnPoolStats<org.apache.hc.client5.http.HttpRoute>

public class InstrumentedAsyncClientConnectionManager extends org.apache.hc.client5.http.impl.nio.PoolingAsyncClientConnectionManager
A HttpClientConnectionManager which monitors the number of open connections.
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static class 
     
  • Field Summary

    Fields inherited from class org.apache.hc.client5.http.impl.nio.PoolingAsyncClientConnectionManager

    DEFAULT_MAX_CONNECTIONS_PER_ROUTE, DEFAULT_MAX_TOTAL_CONNECTIONS
  • Method Summary

    Modifier and Type
    Method
    Description
    builder(com.codahale.metrics.MetricRegistry metricsRegistry)
     
    void
    void
    close(org.apache.hc.core5.io.CloseMode closeMode)
    protected static org.apache.hc.core5.http.config.Registry<org.apache.hc.core5.http.nio.ssl.TlsStrategy>
     

    Methods inherited from class org.apache.hc.client5.http.impl.nio.PoolingAsyncClientConnectionManager

    closeExpired, closeIdle, connect, getDefaultMaxPerRoute, getMaxPerRoute, getMaxTotal, getRoutes, getStats, getTotalStats, getValidateAfterInactivity, isClosed, lease, release, setConnectionConfigResolver, setDefaultConnectionConfig, setDefaultMaxPerRoute, setDefaultTlsConfig, setMaxPerRoute, setMaxTotal, setTlsConfigResolver, setValidateAfterInactivity, upgrade, upgrade

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • getDefaultTlsStrategy

      protected static org.apache.hc.core5.http.config.Registry<org.apache.hc.core5.http.nio.ssl.TlsStrategy> getDefaultTlsStrategy()
    • close

      public void close()
      Specified by:
      close in interface AutoCloseable
      Specified by:
      close in interface Closeable
      Overrides:
      close in class org.apache.hc.client5.http.impl.nio.PoolingAsyncClientConnectionManager
    • close

      public void close(org.apache.hc.core5.io.CloseMode closeMode)
      Specified by:
      close in interface org.apache.hc.core5.io.ModalCloseable
      Overrides:
      close in class org.apache.hc.client5.http.impl.nio.PoolingAsyncClientConnectionManager
    • builder

      public static InstrumentedAsyncClientConnectionManager.Builder builder(com.codahale.metrics.MetricRegistry metricsRegistry)