Package com.codahale.metrics.httpclient5
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 classInstrumentedAsyncClientConnectionManager.Builder -
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 static InstrumentedAsyncClientConnectionManager.Builderbuilder(io.dropwizard.metrics5.MetricRegistry metricsRegistry)voidclose()voidclose(org.apache.hc.core5.io.CloseMode closeMode)protected static org.apache.hc.core5.http.config.Registry<org.apache.hc.core5.http.nio.ssl.TlsStrategy>getDefaultTlsStrategy()Methods inherited from class org.apache.hc.client5.http.impl.nio.PoolingAsyncClientConnectionManager
closeExpired, closeIdle, connect, getDefaultMaxPerRoute, getMaxPerRoute, getMaxTotal, getRoutes, getStats, getTotalStats, getValidateAfterInactivity, lease, release, setDefaultMaxPerRoute, setMaxPerRoute, setMaxTotal, setValidateAfterInactivity, upgrade
-
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:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Overrides:
closein classorg.apache.hc.client5.http.impl.nio.PoolingAsyncClientConnectionManager
-
close
public void close(org.apache.hc.core5.io.CloseMode closeMode)- Specified by:
closein interfaceorg.apache.hc.core5.io.ModalCloseable- Overrides:
closein classorg.apache.hc.client5.http.impl.nio.PoolingAsyncClientConnectionManager
-
builder
public static InstrumentedAsyncClientConnectionManager.Builder builder(io.dropwizard.metrics5.MetricRegistry metricsRegistry)
-