Class DefaultWaiter<T>
java.lang.Object
software.amazon.awssdk.core.internal.waiters.DefaultWaiter<T>
- Type Parameters:
T
- the type of the response expected to return from the polling function
- All Implemented Interfaces:
Waiter<T>
Default implementation of the generic
Waiter
.-
Nested Class Summary
Nested classes/interfaces inherited from interface software.amazon.awssdk.core.waiters.Waiter
Waiter.Builder<T>
-
Method Summary
Modifier and TypeMethodDescriptionstatic <T> Waiter.Builder
<T> builder()
It returns when the resource enters into a desired state or it is determined that the resource will never enter into the desired state.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.
-
Method Details
-
run
Description copied from interface:Waiter
It returns when the resource enters into a desired state or it is determined that the resource will never enter into the desired state.- Specified by:
run
in interfaceWaiter<T>
- Parameters:
pollingFunction
- the polling function- Returns:
- the
WaiterResponse
containing either a response or an exception that has matched with the waiter success condition
-
run
public WaiterResponse<T> run(Supplier<T> pollingFunction, WaiterOverrideConfiguration overrideConfiguration) Description copied from interface:Waiter
It returns when the resource enters into a desired state or it is determined that the resource will never enter into the desired state.- Specified by:
run
in interfaceWaiter<T>
- Parameters:
pollingFunction
- the polling functionoverrideConfiguration
- per request override configuration- Returns:
- the
WaiterResponse
containing either a response or an exception that has matched with the waiter success condition
-
builder
-