Interface HttpRequestAbortTaskTracker
-
- All Known Implementing Classes:
HttpRequestAbortTaskTrackerImpl
,NoOpHttpRequestAbortTaskTracker
public interface HttpRequestAbortTaskTracker
Returned byHttpRequestTimer
to track a scheduled timer task.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
cancelTask()
Cancel the timer task.boolean
httpRequestAborted()
boolean
isEnabled()
-
-
-
Method Detail
-
httpRequestAborted
boolean httpRequestAborted()
- Returns:
- True if the HTTP request the scheduled task is tracking has been aborted by the task. False otherwise
-
isEnabled
boolean isEnabled()
- Returns:
- True if the timer is enabled for this request. False otherwise
-
cancelTask
void cancelTask()
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
-
-