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, wait
builder, runAsync
public CompletableFuture<WaiterResponse<T>> runAsync(Supplier<CompletableFuture<T>> asyncPollingFunction)
AsyncWaiter
runAsync
in interface AsyncWaiter<T>
asyncPollingFunction
- the polling function to triggerCompletableFuture
containing the WaiterResponse
public CompletableFuture<WaiterResponse<T>> runAsync(Supplier<CompletableFuture<T>> asyncPollingFunction, WaiterOverrideConfiguration overrideConfig)
AsyncWaiter
runAsync
in interface AsyncWaiter<T>
asyncPollingFunction
- the polling function to triggeroverrideConfig
- per request override configurationCompletableFuture
containing the WaiterResponse
public static <T> AsyncWaiter.Builder<T> builder()
Copyright © 2022. All rights reserved.