Class ApiCallTimeoutTracker
java.lang.Object
software.amazon.awssdk.core.internal.http.timers.ApiCallTimeoutTracker
- All Implemented Interfaces:
TimeoutTracker
Api Call Timeout Tracker to track the
TimeoutTask and the ScheduledFuture.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidSets the abortable task to be aborted byTimeoutTaskvoidcancel()cancel theScheduledFuturebooleanboolean
-
Constructor Details
-
ApiCallTimeoutTracker
-
-
Method Details
-
hasExecuted
public boolean hasExecuted()- Specified by:
hasExecutedin interfaceTimeoutTracker- Returns:
- True if timeout task has been executed. False otherwise
-
isEnabled
public boolean isEnabled()- Specified by:
isEnabledin interfaceTimeoutTracker- Returns:
- True if the timer task has been scheduled. False if the timeout is disabled for this request
-
cancel
public void cancel()Description copied from interface:TimeoutTrackercancel theScheduledFuture- Specified by:
cancelin interfaceTimeoutTracker
-
abortable
Description copied from interface:TimeoutTrackerSets the abortable task to be aborted byTimeoutTask- Specified by:
abortablein interfaceTimeoutTracker- Parameters:
abortable- the abortable task
-