T - the type of the response expected to return from the polling function@ThreadSafe public final class DefaultAsyncWaiter<T> extends Object implements AsyncWaiter<T>
AsyncWaiter.| Modifier and Type | Class and Description |
|---|---|
static class |
DefaultAsyncWaiter.DefaultBuilder<T> |
AsyncWaiter.Builder<T>| Modifier and Type | Method and Description |
|---|---|
static <T> AsyncWaiter.Builder<T> |
builder() |
CompletableFuture<WaiterResponse<T>> |
runAsync(Supplier<CompletableFuture<T>> asyncPollingFunction)
Runs the provided polling function.
|
CompletableFuture<WaiterResponse<T>> |
runAsync(Supplier<CompletableFuture<T>> asyncPollingFunction,
WaiterOverrideConfiguration overrideConfig)
Runs the provided polling function.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitbuilder, runAsyncpublic CompletableFuture<WaiterResponse<T>> runAsync(Supplier<CompletableFuture<T>> asyncPollingFunction)
AsyncWaiterrunAsync in interface AsyncWaiter<T>asyncPollingFunction - the polling function to triggerCompletableFuture containing the WaiterResponsepublic CompletableFuture<WaiterResponse<T>> runAsync(Supplier<CompletableFuture<T>> asyncPollingFunction, WaiterOverrideConfiguration overrideConfig)
AsyncWaiterrunAsync in interface AsyncWaiter<T>asyncPollingFunction - the polling function to triggeroverrideConfig - per request override configurationCompletableFuture containing the WaiterResponsepublic static <T> AsyncWaiter.Builder<T> builder()
Copyright © 2023. All rights reserved.