public final class RetryUtils extends Object
| Modifier and Type | Class and Description |
|---|---|
static interface |
RetryUtils.CleanupAfterFailure
Cleanup procedure after each failed attempt.
|
static interface |
RetryUtils.Task<T>
Task to be performed.
|
| Modifier and Type | Method and Description |
|---|---|
static <T> T |
retry(RetryUtils.Task<T> f,
Predicate<Throwable> shouldRetry,
RetryUtils.CleanupAfterFailure onEachFailure,
int maxTries,
String messageOnRetry) |
public static <T> T retry(RetryUtils.Task<T> f, Predicate<Throwable> shouldRetry, RetryUtils.CleanupAfterFailure onEachFailure, int maxTries, String messageOnRetry) throws Exception
ExceptionCopyright © 2022 The Apache Software Foundation. All rights reserved.