public final class RetryUtils
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static <E extends java.lang.Throwable> |
retry(org.apache.commons.lang3.function.FailableRunnable<E> closure) |
static <E extends java.lang.Throwable> |
retry(int retries,
java.time.Duration waitBetweenRetries,
org.apache.commons.lang3.function.FailableRunnable<E> closure) |
static <E extends java.lang.Throwable> |
retry(int retries,
org.apache.commons.lang3.function.FailableRunnable<E> closure) |
public static <E extends java.lang.Throwable> int retry(org.apache.commons.lang3.function.FailableRunnable<E> closure)
throws java.lang.InterruptedException,
E extends java.lang.Throwable
java.lang.InterruptedExceptionE extends java.lang.Throwablepublic static <E extends java.lang.Throwable> int retry(int retries,
org.apache.commons.lang3.function.FailableRunnable<E> closure)
throws java.lang.InterruptedException,
E extends java.lang.Throwable
java.lang.InterruptedExceptionE extends java.lang.Throwablepublic static <E extends java.lang.Throwable> int retry(int retries,
java.time.Duration waitBetweenRetries,
org.apache.commons.lang3.function.FailableRunnable<E> closure)
throws java.lang.InterruptedException,
E extends java.lang.Throwable
java.lang.InterruptedExceptionE extends java.lang.Throwable