List of usage examples for org.apache.http.impl.nio.client PipeliningClientExchangeHandlerImpl start
public void start() throws HttpException, IOException
From source file:org.apache.http.impl.nio.client.MinimalHttpAsyncClient.java
@Override public <T> Future<List<T>> execute(final HttpHost target, final List<? extends HttpAsyncRequestProducer> requestProducers, final List<? extends HttpAsyncResponseConsumer<T>> responseConsumers, final HttpContext context, final FutureCallback<List<T>> callback) { ensureRunning();/*from www.ja v a 2 s . c o m*/ final BasicFuture<List<T>> future = new BasicFuture<List<T>>(callback); final HttpClientContext localcontext = HttpClientContext .adapt(context != null ? context : new BasicHttpContext()); @SuppressWarnings("resource") final PipeliningClientExchangeHandlerImpl<T> handler = new PipeliningClientExchangeHandlerImpl<T>(this.log, target, requestProducers, responseConsumers, localcontext, future, this.connmgr, this.httpProcessor, this.connReuseStrategy, this.keepaliveStrategy); try { handler.start(); } catch (final Exception ex) { handler.failed(ex); } return future; }