| Package | Description |
|---|---|
| software.amazon.awssdk.testutils |
| Modifier and Type | Method and Description |
|---|---|
Waiter<T> |
Waiter.failOn(Predicate<T> whenToFail)
Define the condition on the response under which the thing we are trying has already failed and further
attempts are pointless.
|
Waiter<T> |
Waiter.ignoringException(Class<? extends Throwable>... whatToIgnore)
Define the exception types that should be ignored if the thing we are trying throws them.
|
static <T> Waiter<T> |
Waiter.run(Supplier<T> thingToTry)
Create a waiter that attempts executing the provided function until the condition set with
until(Predicate) is
met or until it throws an exception. |
Waiter<T> |
Waiter.until(Predicate<T> whenToStop)
Define the condition on the response under which the thing we are trying is complete.
|
Waiter<T> |
Waiter.untilException(Class<? extends Throwable>... whenToStopOnException)
Define the condition on an exception thrown under which the thing we are trying is complete.
|
Copyright © 2020. All rights reserved.