public final class AsyncTimeoutTask extends Object implements TimeoutTask
TimeoutTask for asynchronous operations to be scheduled to fail
the CompletableFuture and abort the asynchronous requests.| Constructor and Description |
|---|
AsyncTimeoutTask(CompletableFuture<?> completableFuture,
Supplier<SdkClientException> exceptionSupplier)
Constructs a new
AsyncTimeoutTask. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
hasExecuted() |
void |
run() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitabortable, cancelpublic AsyncTimeoutTask(CompletableFuture<?> completableFuture, Supplier<SdkClientException> exceptionSupplier)
AsyncTimeoutTask.completableFuture - the CompletableFuture to failexceptionSupplier - the exceptionSupplier to thrownpublic boolean hasExecuted()
hasExecuted in interface TimeoutTaskCopyright © 2023. All rights reserved.