T
- the type of the resource returned from the polling functionpublic interface Waiter<T>
Modifier and Type | Interface and Description |
---|---|
static interface |
Waiter.Builder<T>
The Waiter Builder
|
Modifier and Type | Method and Description |
---|---|
static <T> Waiter.Builder<T> |
builder(Class<? extends T> responseClass)
Creates a newly initialized builder for the waiter object.
|
default 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.
|
default WaiterResponse<T> |
run(Supplier<T> pollingFunction,
Consumer<WaiterOverrideConfiguration.Builder> overrideConfig)
It returns when the resource enters into a desired state or
it is determined that the resource will never enter into the desired state.
|
default WaiterResponse<T> |
run(Supplier<T> pollingFunction,
WaiterOverrideConfiguration overrideConfig)
It returns when the resource enters into a desired state or
it is determined that the resource will never enter into the desired state.
|
default WaiterResponse<T> run(Supplier<T> pollingFunction)
pollingFunction
- the polling functionWaiterResponse
containing either a response or an exception that has matched with the
waiter success conditiondefault WaiterResponse<T> run(Supplier<T> pollingFunction, WaiterOverrideConfiguration overrideConfig)
pollingFunction
- the polling functionoverrideConfig
- per request override configurationWaiterResponse
containing either a response or an exception that has matched with the
waiter success conditiondefault WaiterResponse<T> run(Supplier<T> pollingFunction, Consumer<WaiterOverrideConfiguration.Builder> overrideConfig)
pollingFunction
- the polling functionoverrideConfig
- The consumer that will configure the per request override configuration for waitersWaiterResponse
containing either a response or an exception that has matched with the
waiter success conditionstatic <T> Waiter.Builder<T> builder(Class<? extends T> responseClass)
T
- the type of the responseresponseClass
- the response classCopyright © 2020. All rights reserved.