@FunctionalInterface
public interface ActionRetrier<T>
| Modifier and Type | Method and Description |
|---|---|
Result<T> |
run(java.util.function.Supplier<Result<T>> action,
java.util.function.Predicate<Result<T>> shouldRetry)
Uses an acceptance condition to determine whether to proceed with the action result.
|
Result<T> run(java.util.function.Supplier<Result<T>> action, java.util.function.Predicate<Result<T>> shouldRetry)
action - the action to executeshouldRetry - predicate to determine if the action should be retried on failure