Package | Description |
---|---|
software.amazon.awssdk.core.internal.http | |
software.amazon.awssdk.core.internal.http.timers |
Modifier and Type | Method and Description |
---|---|
TimeoutTracker |
RequestExecutionContext.apiCallAttemptTimeoutTracker() |
TimeoutTracker |
RequestExecutionContext.apiCallTimeoutTracker() |
Modifier and Type | Method and Description |
---|---|
void |
RequestExecutionContext.apiCallAttemptTimeoutTracker(TimeoutTracker timeoutTracker) |
void |
RequestExecutionContext.apiCallTimeoutTracker(TimeoutTracker timeoutTracker)
Sets the tracker task for the .
|
Modifier and Type | Class and Description |
---|---|
class |
ApiCallTimeoutTracker
Api Call Timeout Tracker to track the
TimeoutTask and the ScheduledFuture . |
class |
NoOpTimeoutTracker
A no op implementation of
TimeoutTracker . |
Modifier and Type | Method and Description |
---|---|
static <T> TimeoutTracker |
TimerUtils.timeAsyncTaskIfNeeded(CompletableFuture<T> completableFuture,
ScheduledExecutorService timeoutExecutor,
Supplier<SdkClientException> exceptionSupplier,
long timeoutInMills)
Schedule a
TimeoutTask and exceptional completes a CompletableFuture with the provide exception
if not otherwise completed before the given timeout. |
static TimeoutTracker |
TimerUtils.timeSyncTaskIfNeeded(ScheduledExecutorService timeoutExecutor,
long timeoutInMills,
Thread threadToInterrupt)
Schedule a
TimeoutTask that aborts the task if not otherwise completed before the given timeout. |
Copyright © 2022. All rights reserved.