Class DefaultWaiter<T>
java.lang.Object
software.amazon.awssdk.core.internal.waiters.DefaultWaiter<T>
-
Nested Class Summary
Nested ClassesNested 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:WaiterIt 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:
runin interfaceWaiter<T>- Parameters:
pollingFunction- the polling function- Returns:
- the
WaiterResponsecontaining 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:WaiterIt 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:
runin interfaceWaiter<T>- Parameters:
pollingFunction- the polling functionoverrideConfiguration- per request override configuration- Returns:
- the
WaiterResponsecontaining either a response or an exception that has matched with the waiter success condition
-
builder
-