Interface TimeoutTracker
-
- All Known Implementing Classes:
ApiCallTimeoutTracker
,NoOpTimeoutTracker
public interface TimeoutTracker
Tracker task to track theTimeoutTask
and theScheduledFuture
that schedules the timeout task.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
abortable(Abortable abortable)
Sets the abortable task to be aborted byTimeoutTask
void
cancel()
cancel theScheduledFuture
boolean
hasExecuted()
boolean
isEnabled()
-
-
-
Method Detail
-
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
void abortable(Abortable abortable)
Sets the abortable task to be aborted byTimeoutTask
- Parameters:
abortable
- the abortable task
-
-