How does requestConnection for PoolingNHttpClientConnectionManager work in Apache HttpAsyncClient?

1.5k Views Asked by At

How does requestConnection for PoolingNHttpClientConnectionManager work in Apache HttpAsyncClient? Can someone show me a working example?

1

There are 1 best solutions below

3
On

This is how it is being used inside HttpAsyncClient

http://hc.apache.org/httpcomponents-asyncclient-4.1.x/httpasyncclient/xref/org/apache/http/impl/nio/client/AbstractClientExchangeHandler.html

Is there any particular reason you want to use PoolingNHttpClientConnectionManager directly instead of using it through HttpAsyncClient?