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
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Sets the abortable task to be aborted byTimeoutTask
void
cancel()
cancel theScheduledFuture
boolean
boolean
-
Constructor Details
-
ApiCallTimeoutTracker
-
-
Method Details
-
hasExecuted
public boolean hasExecuted()- Specified by:
hasExecuted
in interfaceTimeoutTracker
- Returns:
- True if timeout task has been executed. False otherwise
-
isEnabled
public boolean isEnabled()- Specified by:
isEnabled
in 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:TimeoutTracker
cancel theScheduledFuture
- Specified by:
cancel
in interfaceTimeoutTracker
-
abortable
Description copied from interface:TimeoutTracker
Sets the abortable task to be aborted byTimeoutTask
- Specified by:
abortable
in interfaceTimeoutTracker
- Parameters:
abortable
- the abortable task
-