Top Fields Constructors Methods
org.apache.http.impl.client

pack-priv Class HttpRequestTaskCallable<V>

extends Object
implements Callable<V>
Class Inheritance
All Implemented Interfaces
java.util.concurrent.Callable
Imports
java.util.concurrent.Callable, java.util.concurrent.atomic.AtomicBoolean, org.apache.http.client.HttpClient, .ResponseHandler, org.apache.http.client.methods.HttpUriRequest, org.apache.http.concurrent.FutureCallback, org.apache.http.protocol.HttpContext

Field Summary

Modifier and TypeField and Description
private final FutureCallback<V>
private final AtomicBoolean
private final HttpContext
private long
private final HttpClient
private final FutureRequestExecutionMetrics
private final HttpUriRequest
private final ResponseHandler<V>
private final long
private long

Constructor Summary

AccessConstructor and Description
pack-priv
HttpRequestTaskCallable(final HttpClient httpClient, final HttpUriRequest request, final HttpContext context, final ResponseHandler<V> responseHandler, final FutureCallback<V> callback, final FutureRequestExecutionMetrics metrics)

Method Summary

Modifier and TypeMethod and Description
public V
call()

Implements java.util.concurrent.Callable.call.

Computes a result, or throws an exception if unable to do so.
public void
public long
public long
public long
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

callbackback to summary
private final FutureCallback<V> callback
cancelledback to summary
private final AtomicBoolean cancelled
contextback to summary
private final HttpContext context
endedback to summary
private long ended
httpclientback to summary
private final HttpClient httpclient
metricsback to summary
private final FutureRequestExecutionMetrics metrics
requestback to summary
private final HttpUriRequest request
responseHandlerback to summary
private final ResponseHandler<V> responseHandler
scheduledback to summary
private final long scheduled
startedback to summary
private long started

Constructor Detail

HttpRequestTaskCallableback to summary
pack-priv HttpRequestTaskCallable(final HttpClient httpClient, final HttpUriRequest request, final HttpContext context, final ResponseHandler<V> responseHandler, final FutureCallback<V> callback, final FutureRequestExecutionMetrics metrics)

Method Detail

callback to summary
public V call() throws Exception

Implements java.util.concurrent.Callable.call.

Doc from java.util.concurrent.Callable.call.

Computes a result, or throws an exception if unable to do so.

Returns:V

computed result

Annotations
@Override
Exceptions
Exception:
if unable to compute a result
cancelback to summary
public void cancel()
getEndedback to summary
public long getEnded()
getScheduledback to summary
public long getScheduled()
getStartedback to summary
public long getStarted()