Class NoOpTimeoutTracker
- java.lang.Object
-
- software.amazon.awssdk.core.internal.http.timers.NoOpTimeoutTracker
-
- All Implemented Interfaces:
TimeoutTracker
@SdkInternalApi public final class NoOpTimeoutTracker extends Object implements TimeoutTracker
A no op implementation ofTimeoutTracker.
-
-
Field Summary
Fields Modifier and Type Field Description static NoOpTimeoutTrackerINSTANCE
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidabortable(Abortable abortable)Sets the abortable task to be aborted byTimeoutTaskvoidcancel()cancel theScheduledFuturebooleanhasExecuted()booleanisEnabled()
-
-
-
Field Detail
-
INSTANCE
public static final NoOpTimeoutTracker INSTANCE
-
-
Method Detail
-
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
public void abortable(Abortable abortable)
Description copied from interface:TimeoutTrackerSets the abortable task to be aborted byTimeoutTask- Specified by:
abortablein interfaceTimeoutTracker- Parameters:
abortable- the abortable task
-
-