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() |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitabortablepublic AsyncTimeoutTask(CompletableFuture<?> completableFuture, SdkException exception)
AsyncTimeoutTask.completableFuture - the CompletableFuture to failexception - the exception to thrownpublic boolean hasExecuted()
hasExecuted in interface TimeoutTaskCopyright © 2017 Amazon Web Services, Inc. All Rights Reserved.