Example usage for org.apache.http.impl.nio.client InternalState InternalState

List of usage examples for org.apache.http.impl.nio.client InternalState InternalState

Introduction

In this page you can find the example usage for org.apache.http.impl.nio.client InternalState InternalState.

Prototype

public InternalState(final long id, final HttpAsyncRequestProducer requestProducer,
            final HttpAsyncResponseConsumer<?> responseConsumer, final HttpClientContext localContext) 

Source Link

Usage

From source file:org.apache.http.impl.nio.client.DefaultClientExchangeHandlerImpl.java

public DefaultClientExchangeHandlerImpl(final Log log, final HttpAsyncRequestProducer requestProducer,
        final HttpAsyncResponseConsumer<T> responseConsumer, final HttpClientContext localContext,
        final BasicFuture<T> resultFuture, final NHttpClientConnectionManager connmgr,
        final ConnectionReuseStrategy connReuseStrategy, final ConnectionKeepAliveStrategy keepaliveStrategy,
        final InternalClientExec exec) {
    super(log, localContext, resultFuture, connmgr, connReuseStrategy, keepaliveStrategy);
    this.requestProducer = requestProducer;
    this.responseConsumer = responseConsumer;
    this.resultFuture = resultFuture;
    this.exec = exec;
    this.state = new InternalState(getId(), requestProducer, responseConsumer, localContext);
}