Example usage for org.apache.http.impl.nio.reactor DefaultConnectingIOReactor setExceptionHandler

List of usage examples for org.apache.http.impl.nio.reactor DefaultConnectingIOReactor setExceptionHandler

Introduction

In this page you can find the example usage for org.apache.http.impl.nio.reactor DefaultConnectingIOReactor setExceptionHandler.

Prototype

public void setExceptionHandler(final IOReactorExceptionHandler exceptionHandler) 

Source Link

Document

Sets exception handler for this I/O reactor.

Usage

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<?>>();
}