Interface HttpRequestAbortTaskTracker
- All Known Implementing Classes:
HttpRequestAbortTaskTrackerImpl
,NoOpHttpRequestAbortTaskTracker
public interface HttpRequestAbortTaskTracker
Returned by
HttpRequestTimer
to track a scheduled timer task.-
Method Summary
Modifier and TypeMethodDescriptionvoid
Cancel the timer task.boolean
boolean
-
Method Details
-
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
-