protected InstrumentedHttpClientConnectionManager createConnectionManager ( Registry < ConnectionSocketFactory > registry , String name ) { final Duration ttl = configuration . getTimeToLive ( ) ; final InstrumentedHttpClientConnectionManager manager = new InstrumentedHttpClientConnectionManager ( metricRegistry , registry , null , null , resolver , ttl . getQuantity ( ) , ttl . getUnit ( ) , name ) ; return configureConnectionManager ( manager ) ; }
Create a InstrumentedHttpClientConnectionManager based on the HttpClientConfiguration . It sets the maximum connections per route and the maximum total connections that the connection manager can create