public CloseableHttpClient createHttpConnection ( ) { LOG . trace ( "HTTP build new connection based on connection pool" ) ; return HttpClients . custom ( ) . setRetryHandler ( getRetryHandler ( ) ) . setConnectionManager ( connectionPool ) . setDefaultRequestConfig ( rConfig ) . setKeepAliveStrategy ( myStrategy ) . build ( ) ; }
Creates HTTP connection based on the connection pool