| Modifier and Type | Field and Description |
|---|---|
| private final HttpRequestTaskCallable | |
| private final HttpUriRequest |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | cancel(final boolean
true if the thread
executing this task should be interrupted (if the thread is
known to the implementation); otherwise, in-progress tasks are
allowed to completeOverrides java. Implements java. |
| public long | |
| public long | Returns: the time in millis it took to make the request (excluding the time it was scheduled to be executed).
|
| public long | |
| public long | |
| public long | Returns: the time in millis it took to execute the task from the moment it was scheduled.
|
| public String | toString()
Overrides java. |
| callable | back to summary |
|---|---|
| private final HttpRequestTaskCallable<V> callable | |
| request | back to summary |
|---|---|
| private final HttpUriRequest request | |
| HttpRequestFutureTask | back to summary |
|---|---|
| public HttpRequestFutureTask(final HttpUriRequest request, final HttpRequestTaskCallable<V> httpCallable) | |
| cancel | back to summary |
|---|---|
| public boolean cancel(final boolean mayInterruptIfRunning) Overrides java. Implements java. Doc from java. Attempts to cancel execution of this task. This method has no
effect if the task is already completed or cancelled, or could
not be cancelled for some other reason. Otherwise, if this
task has not started when The return value from this method does not necessarily
indicate whether the task is now cancelled; use
| |
| endedTime | back to summary |
|---|---|
public long endedTime()
| |
| requestDuration | back to summary |
|---|---|
public long requestDuration()
| |
| scheduledTime | back to summary |
|---|---|
public long scheduledTime()
| |
| startedTime | back to summary |
|---|---|
public long startedTime()
| |
| taskDuration | back to summary |
|---|---|
public long taskDuration()
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of this FutureTask. | |