Class InstrumentedHttpClientConnectionManager

java.lang.Object
org.apache.hc.client5.http.impl.io.PoolingHttpClientConnectionManager
com.codahale.metrics.httpclient5.InstrumentedHttpClientConnectionManager
All Implemented Interfaces:
Closeable, AutoCloseable, org.apache.hc.client5.http.io.HttpClientConnectionManager, 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 InstrumentedHttpClientConnectionManager extends org.apache.hc.client5.http.impl.io.PoolingHttpClientConnectionManager
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.io.PoolingHttpClientConnectionManager

    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.client5.http.socket.ConnectionSocketFactory>
     

    Methods inherited from class org.apache.hc.client5.http.impl.io.PoolingHttpClientConnectionManager

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

    Methods inherited from class java.lang.Object

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

    • getDefaultRegistry

      protected static org.apache.hc.core5.http.config.Registry<org.apache.hc.client5.http.socket.ConnectionSocketFactory> getDefaultRegistry()
    • 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.io.PoolingHttpClientConnectionManager
    • 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.io.PoolingHttpClientConnectionManager
    • builder

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