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, wait
abortable, cancel
public AsyncTimeoutTask(CompletableFuture<?> completableFuture, Supplier<SdkClientException> exceptionSupplier)
AsyncTimeoutTask
.completableFuture
- the CompletableFuture
to failexceptionSupplier
- the exceptionSupplier to thrownpublic boolean hasExecuted()
hasExecuted
in interface TimeoutTask
Copyright © 2020. All rights reserved.