Package | Description |
---|---|
software.amazon.awssdk.core.internal.waiters | |
software.amazon.awssdk.core.waiters |
Modifier and Type | Method and Description |
---|---|
Optional<WaiterAcceptor<? super T>> |
WaiterExecutorHelper.firstWaiterAcceptorIfMatched(Either<T,Throwable> responseOrException) |
Modifier and Type | Method and Description |
---|---|
Waiter.Builder<T> |
DefaultWaiter.DefaultBuilder.addAcceptor(WaiterAcceptor<? super T> waiterAcceptor) |
AsyncWaiter.Builder<T> |
DefaultAsyncWaiter.DefaultBuilder.addAcceptor(WaiterAcceptor<? super T> waiterAcceptor) |
SdkClientException |
WaiterExecutorHelper.waiterFailureException(WaiterAcceptor<? super T> acceptor) |
Modifier and Type | Method and Description |
---|---|
Waiter.Builder<T> |
DefaultWaiter.DefaultBuilder.acceptors(List<WaiterAcceptor<? super T>> waiterAcceptors) |
AsyncWaiter.Builder<T> |
DefaultAsyncWaiter.DefaultBuilder.acceptors(List<WaiterAcceptor<? super T>> waiterAcceptors) |
Constructor and Description |
---|
AsyncWaiterExecutor(WaiterConfiguration configuration,
List<WaiterAcceptor<? super T>> waiterAcceptors,
ScheduledExecutorService executorService) |
WaiterExecutor(WaiterConfiguration configuration,
List<WaiterAcceptor<? super T>> waiterAcceptors) |
WaiterExecutorHelper(List<WaiterAcceptor<? super T>> waiterAcceptors,
WaiterConfiguration configuration) |
Modifier and Type | Method and Description |
---|---|
static <T> WaiterAcceptor<T> |
WaiterAcceptor.errorOnExceptionAcceptor(Predicate<Throwable> errorPredicate)
Creates an error waiter acceptor which determines if the exception should transition the waiter to failure state
|
static <T> WaiterAcceptor<T> |
WaiterAcceptor.errorOnResponseAcceptor(Predicate<T> responsePredicate)
Creates a success waiter acceptor which determines if the exception should transition the waiter to success state
|
static <T> WaiterAcceptor<T> |
WaiterAcceptor.errorOnResponseAcceptor(Predicate<T> responsePredicate,
String message)
Creates a success waiter acceptor which determines if the exception should transition the waiter to success state
|
static <T> WaiterAcceptor<T> |
WaiterAcceptor.retryOnExceptionAcceptor(Predicate<Throwable> errorPredicate)
Creates a retry on exception waiter acceptor which determines if the exception should transition the waiter to retry state
|
static <T> WaiterAcceptor<T> |
WaiterAcceptor.retryOnResponseAcceptor(Predicate<T> responsePredicate)
Creates a retry on exception waiter acceptor which determines if the exception should transition the waiter to retry state
|
static <T> WaiterAcceptor<T> |
WaiterAcceptor.successOnExceptionAcceptor(Predicate<Throwable> errorPredicate)
Creates an error waiter acceptor which determines if the exception should transition the waiter to success state
|
static <T> WaiterAcceptor<T> |
WaiterAcceptor.successOnResponseAcceptor(Predicate<T> responsePredicate)
Creates a success waiter acceptor which determines if the exception should transition the waiter to success state
|
Modifier and Type | Method and Description |
---|---|
B |
WaiterBuilder.addAcceptor(WaiterAcceptor<? super T> waiterAcceptors)
Adds a
WaiterAcceptor to the end of the ordered waiterAcceptors list. |
Modifier and Type | Method and Description |
---|---|
B |
WaiterBuilder.acceptors(List<WaiterAcceptor<? super T>> waiterAcceptors)
Defines a list of
WaiterAcceptor s to check whether an expected state has met after executing an operation. |
Copyright © 2021. All rights reserved.