T
- the type of the resource returned from the polling functionpublic interface AsyncWaiter<T>
Modifier and Type | Interface and Description |
---|---|
static interface |
AsyncWaiter.Builder<T>
The Waiter Builder
|
Modifier and Type | Method and Description |
---|---|
static <T> AsyncWaiter.Builder<T> |
builder(Class<? extends T> responseClass)
Creates a newly initialized builder for the waiter object.
|
default CompletableFuture<WaiterResponse<T>> |
runAsync(Supplier<CompletableFuture<T>> asyncPollingFunction)
Runs the provided polling function.
|
default CompletableFuture<WaiterResponse<T>> |
runAsync(Supplier<CompletableFuture<T>> asyncPollingFunction,
Consumer<WaiterOverrideConfiguration.Builder> overrideConfig)
Runs the provided polling function.
|
default CompletableFuture<WaiterResponse<T>> |
runAsync(Supplier<CompletableFuture<T>> asyncPollingFunction,
WaiterOverrideConfiguration overrideConfig)
Runs the provided polling function.
|
default CompletableFuture<WaiterResponse<T>> runAsync(Supplier<CompletableFuture<T>> asyncPollingFunction)
asyncPollingFunction
- the polling function to triggerCompletableFuture
containing the WaiterResponse
default CompletableFuture<WaiterResponse<T>> runAsync(Supplier<CompletableFuture<T>> asyncPollingFunction, WaiterOverrideConfiguration overrideConfig)
asyncPollingFunction
- the polling function to triggeroverrideConfig
- per request override configurationCompletableFuture
containing the WaiterResponse
default CompletableFuture<WaiterResponse<T>> runAsync(Supplier<CompletableFuture<T>> asyncPollingFunction, Consumer<WaiterOverrideConfiguration.Builder> overrideConfig)
asyncPollingFunction
- the polling function to triggeroverrideConfig
- The consumer that will configure the per request override configuration for waitersCompletableFuture
containing the WaiterResponse
static <T> AsyncWaiter.Builder<T> builder(Class<? extends T> responseClass)
T
- the type of the responseresponseClass
- the response classCopyright © 2023. All rights reserved.