Class HttpRequestAbortTaskTrackerImpl
- java.lang.Object
-
- com.amazonaws.http.timers.request.HttpRequestAbortTaskTrackerImpl
-
- All Implemented Interfaces:
HttpRequestAbortTaskTracker
public class HttpRequestAbortTaskTrackerImpl extends Object implements HttpRequestAbortTaskTracker
Keeps track of the scheduledHttpRequestAbortTaskand the associatedFuture
-
-
Constructor Summary
Constructors Constructor Description HttpRequestAbortTaskTrackerImpl(HttpRequestAbortTask task, ScheduledFuture<?> future)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcancelTask()Cancel the timer task.booleanhttpRequestAborted()booleanisEnabled()
-
-
-
Constructor Detail
-
HttpRequestAbortTaskTrackerImpl
public HttpRequestAbortTaskTrackerImpl(HttpRequestAbortTask task, ScheduledFuture<?> future)
-
-
Method Detail
-
httpRequestAborted
public boolean httpRequestAborted()
- Specified by:
httpRequestAbortedin 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:
isEnabledin interfaceHttpRequestAbortTaskTracker- Returns:
- True if the timer is enabled for this request. False otherwise
-
cancelTask
public void cancelTask()
Description copied from interface:HttpRequestAbortTaskTrackerCancel 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:
cancelTaskin interfaceHttpRequestAbortTaskTracker
-
-