T - public final class Retry<T> extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
Retry.RetryR<T> |
| Modifier and Type | Method and Description |
|---|---|
T |
call(Callable<T> callable) |
static <R> Retry<R> |
of(int retryTimes,
long retryInterval,
BiPredicate<? super R,? super Exception> retryCondition) |
static Retry<Void> |
of(int retryTimes,
long retryInterval,
Predicate<? super Exception> retryCondition) |
void |
run(Throwables.Runnable<? extends Exception> cmd) |
public static Retry<Void> of(int retryTimes, long retryInterval, Predicate<? super Exception> retryCondition)
retryTimes - retryInterval - retryCondition - public static <R> Retry<R> of(int retryTimes, long retryInterval, BiPredicate<? super R,? super Exception> retryCondition)
R - retryTimes - retryInterval - retryCondition - public void run(Throwables.Runnable<? extends Exception> cmd) throws Exception
cmd - Exception - the exceptionCopyright © 2021. All rights reserved.