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,
SdkException exception)
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
public AsyncTimeoutTask(CompletableFuture<?> completableFuture, SdkException exception)
AsyncTimeoutTask
.completableFuture
- the CompletableFuture
to failexception
- the exception to thrownpublic boolean hasExecuted()
hasExecuted
in interface TimeoutTask
Copyright © 2019. All rights reserved.