public static final class DefaultAsyncWaiter.DefaultBuilder<T> extends Object implements AsyncWaiter.Builder<T>
| Modifier and Type | Method and Description |
|---|---|
AsyncWaiter.Builder<T> |
acceptors(List<WaiterAcceptor<? super T>> waiterAcceptors)
Defines a list of
WaiterAcceptors to check whether an expected state has met after executing an operation. |
AsyncWaiter.Builder<T> |
addAcceptor(WaiterAcceptor<? super T> waiterAcceptor)
Adds a
WaiterAcceptor to the end of the ordered waiterAcceptors list. |
DefaultAsyncWaiter<T> |
build()
An immutable object that is created from the properties that have been set on the builder.
|
AsyncWaiter.Builder<T> |
overrideConfiguration(WaiterOverrideConfiguration overrideConfiguration)
Defines overrides to the default SDK waiter configuration that should be used
for waiters created by this builder.
|
AsyncWaiter.Builder<T> |
scheduledExecutorService(ScheduledExecutorService scheduledExecutorService)
Defines the
ScheduledExecutorService used to schedule async polling attempts. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitoverrideConfigurationpublic AsyncWaiter.Builder<T> scheduledExecutorService(ScheduledExecutorService scheduledExecutorService)
AsyncWaiter.BuilderScheduledExecutorService used to schedule async polling attempts.scheduledExecutorService in interface AsyncWaiter.Builder<T>scheduledExecutorService - the schedule executor servicepublic AsyncWaiter.Builder<T> acceptors(List<WaiterAcceptor<? super T>> waiterAcceptors)
WaiterBuilderWaiterAcceptors to check whether an expected state has met after executing an operation.
The SDK will iterate over the acceptors list and the first acceptor to match the result of the operation transitions the waiter to the state specified in the acceptor.
This completely overrides any WaiterAcceptor currently configured in the builder via
WaiterBuilder.addAcceptor(WaiterAcceptor)
acceptors in interface WaiterBuilder<T,AsyncWaiter.Builder<T>>waiterAcceptors - the waiter acceptorspublic AsyncWaiter.Builder<T> overrideConfiguration(WaiterOverrideConfiguration overrideConfiguration)
WaiterBuilderoverrideConfiguration in interface WaiterBuilder<T,AsyncWaiter.Builder<T>>overrideConfiguration - the override configurationpublic AsyncWaiter.Builder<T> addAcceptor(WaiterAcceptor<? super T> waiterAcceptor)
WaiterBuilderWaiterAcceptor to the end of the ordered waiterAcceptors list.
The SDK will iterate over the acceptors list and the first acceptor to match the result of the operation transitions the waiter to the state specified in the acceptor.
addAcceptor in interface WaiterBuilder<T,AsyncWaiter.Builder<T>>waiterAcceptor - the waiter acceptorspublic DefaultAsyncWaiter<T> build()
AsyncWaiter.Builderbuild in interface AsyncWaiter.Builder<T>Copyright © 2022. All rights reserved.