T
- the type of the response expected to return from the polling function@ThreadSafe public final class DefaultWaiter<T> extends Object implements Waiter<T>
Waiter
.Modifier and Type | Class and Description |
---|---|
static class |
DefaultWaiter.DefaultBuilder<T> |
Waiter.Builder<T>
Modifier and Type | Method and Description |
---|---|
static <T> Waiter.Builder<T> |
builder() |
WaiterResponse<T> |
run(Supplier<T> pollingFunction)
It returns when the resource enters into a desired state or
it is determined that the resource will never enter into the desired state.
|
WaiterResponse<T> |
run(Supplier<T> pollingFunction,
WaiterOverrideConfiguration overrideConfiguration)
It returns when the resource enters into a desired state or
it is determined that the resource will never enter into the desired state.
|
public WaiterResponse<T> run(Supplier<T> pollingFunction)
Waiter
run
in interface Waiter<T>
pollingFunction
- the polling functionWaiterResponse
containing either a response or an exception that has matched with the
waiter success conditionpublic WaiterResponse<T> run(Supplier<T> pollingFunction, WaiterOverrideConfiguration overrideConfiguration)
Waiter
run
in interface Waiter<T>
pollingFunction
- the polling functionoverrideConfiguration
- per request override configurationWaiterResponse
containing either a response or an exception that has matched with the
waiter success conditionpublic static <T> Waiter.Builder<T> builder()
Copyright © 2022. All rights reserved.