I'm trying to understand what is the difference between them. I tried to read the documentation but it does not help alot.
HttpClientBuilder
.create()
.setMaxConnPerRoute(maxConnectionsPerRoute)
.setMaxConnTotal(maxConnectionTotal)
.build();
It's the same of setDefaultMaxPerRoute and setMaxTotal from PoolingHttpClientConnectionManager:
final PoolingHttpClientConnectionManager poolingmgr = new PoolingHttpClientConnectionManager();
poolingmgr.setDefaultMaxPerRoute(max);
poolingmgr.setMaxTotal(2 * max);