Interface TimeoutTracker
-
- All Known Implementing Classes:
ApiCallTimeoutTracker,NoOpTimeoutTracker
@SdkInternalApi public interface TimeoutTracker
Tracker task to track theTimeoutTaskand theScheduledFuturethat schedules the timeout task.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidabortable(Abortable abortable)Sets the abortable task to be aborted byTimeoutTaskvoidcancel()cancel theScheduledFuturebooleanhasExecuted()booleanisEnabled()
-
-
-
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
-
-