Package org.apache.http.impl.client
Class HttpRequestTaskCallable<V>
- java.lang.Object
-
- org.apache.http.impl.client.HttpRequestTaskCallable<V>
-
- All Implemented Interfaces:
java.util.concurrent.Callable<V>
class HttpRequestTaskCallable<V> extends java.lang.Object implements java.util.concurrent.Callable<V>
-
-
Field Summary
Fields Modifier and Type Field Description private org.apache.http.concurrent.FutureCallback<V>
callback
private java.util.concurrent.atomic.AtomicBoolean
cancelled
private org.apache.http.protocol.HttpContext
context
private long
ended
private HttpClient
httpclient
private FutureRequestExecutionMetrics
metrics
private HttpUriRequest
request
private ResponseHandler<V>
responseHandler
private long
scheduled
private long
started
-
Constructor Summary
Constructors Constructor Description HttpRequestTaskCallable(HttpClient httpClient, HttpUriRequest request, org.apache.http.protocol.HttpContext context, ResponseHandler<V> responseHandler, org.apache.http.concurrent.FutureCallback<V> callback, FutureRequestExecutionMetrics metrics)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description V
call()
void
cancel()
long
getEnded()
long
getScheduled()
long
getStarted()
-
-
-
Field Detail
-
request
private final HttpUriRequest request
-
httpclient
private final HttpClient httpclient
-
cancelled
private final java.util.concurrent.atomic.AtomicBoolean cancelled
-
scheduled
private final long scheduled
-
started
private long started
-
ended
private long ended
-
context
private final org.apache.http.protocol.HttpContext context
-
responseHandler
private final ResponseHandler<V> responseHandler
-
callback
private final org.apache.http.concurrent.FutureCallback<V> callback
-
metrics
private final FutureRequestExecutionMetrics metrics
-
-
Constructor Detail
-
HttpRequestTaskCallable
HttpRequestTaskCallable(HttpClient httpClient, HttpUriRequest request, org.apache.http.protocol.HttpContext context, ResponseHandler<V> responseHandler, org.apache.http.concurrent.FutureCallback<V> callback, FutureRequestExecutionMetrics metrics)
-
-