Interface TimeoutTracker
- All Known Implementing Classes:
ApiCallTimeoutTracker
,NoOpTimeoutTracker
public interface TimeoutTracker
Tracker task to track the
TimeoutTask
and the ScheduledFuture
that
schedules the timeout task.-
Method Summary
Modifier and TypeMethodDescriptionvoid
Sets the abortable task to be aborted byTimeoutTask
void
cancel()
cancel theScheduledFuture
boolean
boolean
-
Method Details
-
hasExecuted
boolean hasExecuted()- Returns:
- True if timeout task has been executed. False otherwise
-
isEnabled
boolean isEnabled()- Returns:
- True if the timer task has been scheduled. False if the timeout is disabled for this request
-
cancel
void cancel()cancel theScheduledFuture
-
abortable
Sets the abortable task to be aborted byTimeoutTask
- Parameters:
abortable
- the abortable task
-