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>
@SdkInternalApi @ThreadSafe public final class DefaultWaiter<T> extends Object implements Waiter<T>
Default implementation of the genericWaiter.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classDefaultWaiter.DefaultBuilder<T>-
Nested classes/interfaces inherited from interface software.amazon.awssdk.core.waiters.Waiter
Waiter.Builder<T>
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method 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.
-
-
-
Method Detail
-
run
public WaiterResponse<T> run(Supplier<T> pollingFunction)
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
public static <T> Waiter.Builder<T> builder()
-
-