connectionManager = new PoolingClientAsyncConnectionManager(ioReactor, registry,
connectionTTL, TimeUnit.MILLISECONDS) {
@Override
protected ClientAsyncConnectionFactory createClientAsyncConnectionFactory() {
final HttpResponseFactory responseFactory = new DefaultHttpResponseFactory();
final ByteBufferAllocator allocator = new HeapByteBufferAllocator();
return new ClientAsyncConnectionFactory() {
@Override
public ClientAsyncConnection create(String id, IOSession iosession, HttpParams params) {
return new DefaultClientAsyncConnection(id, iosession,