Class HttpRequestAbortTaskTrackerImpl
java.lang.Object
com.amazonaws.http.timers.request.HttpRequestAbortTaskTrackerImpl
- All Implemented Interfaces:
HttpRequestAbortTaskTracker
Keeps track of the scheduled
HttpRequestAbortTask
and the associated Future
-
Constructor Summary
ConstructorsConstructorDescriptionHttpRequestAbortTaskTrackerImpl
(HttpRequestAbortTask task, ScheduledFuture<?> future) -
Method Summary
Modifier and TypeMethodDescriptionvoid
Cancel the timer task.boolean
boolean
-
Constructor Details
-
HttpRequestAbortTaskTrackerImpl
-
-
Method Details
-
httpRequestAborted
public boolean httpRequestAborted()- Specified by:
httpRequestAborted
in interfaceHttpRequestAbortTaskTracker
- Returns:
- True if the HTTP request the scheduled task is tracking has been aborted by the task. False otherwise
-
isEnabled
public boolean isEnabled()- Specified by:
isEnabled
in interfaceHttpRequestAbortTaskTracker
- Returns:
- True if the timer is enabled for this request. False otherwise
-
cancelTask
public void cancelTask()Description copied from interface:HttpRequestAbortTaskTracker
Cancel the timer task. This should be called when the request completes within the timeout otherwise the task will wake up and abort the HTTP request- Specified by:
cancelTask
in interfaceHttpRequestAbortTaskTracker
-