List of usage examples for org.apache.http.impl.nio.reactor DefaultConnectingIOReactor setExceptionHandler
public void setExceptionHandler(final IOReactorExceptionHandler exceptionHandler)
From source file:org.apache.http.impl.nio.client.AbstractHttpAsyncClient.java
protected AbstractHttpAsyncClient(final IOReactorConfig config) throws IOReactorException { super();// w w w .j a v a 2 s . c om final DefaultConnectingIOReactor defaultioreactor = new DefaultConnectingIOReactor(config); defaultioreactor.setExceptionHandler(new InternalIOReactorExceptionHandler(this.log)); this.connmgr = new PoolingClientAsyncConnectionManager(defaultioreactor); this.queue = new ConcurrentLinkedQueue<HttpAsyncRequestExecutionHandler<?>>(); }