public interface WaiterBuilder<T,B>
Modifier and Type | Method and Description |
---|---|
B |
acceptors(List<WaiterAcceptor<? super T>> waiterAcceptors)
Defines a list of
WaiterAcceptor s to check whether an expected state has met after executing an operation. |
B |
addAcceptor(WaiterAcceptor<? super T> waiterAcceptors)
Adds a
WaiterAcceptor to the end of the ordered waiterAcceptors list. |
default B |
overrideConfiguration(Consumer<WaiterOverrideConfiguration.Builder> overrideConfiguration)
Defines a
WaiterOverrideConfiguration to use when polling a resource |
B |
overrideConfiguration(WaiterOverrideConfiguration overrideConfiguration)
Defines overrides to the default SDK waiter configuration that should be used
for waiters created by this builder.
|
B acceptors(List<WaiterAcceptor<? super T>> waiterAcceptors)
WaiterAcceptor
s 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
addAcceptor(WaiterAcceptor)
waiterAcceptors
- the waiter acceptorsB addAcceptor(WaiterAcceptor<? super T> waiterAcceptors)
WaiterAcceptor
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.
waiterAcceptors
- the waiter acceptorsB overrideConfiguration(WaiterOverrideConfiguration overrideConfiguration)
overrideConfiguration
- the override configurationdefault B overrideConfiguration(Consumer<WaiterOverrideConfiguration.Builder> overrideConfiguration)
WaiterOverrideConfiguration
to use when polling a resourceoverrideConfiguration
- the polling strategy to useCopyright © 2020. All rights reserved.