| Modifier and Type | Method and Description |
|---|---|
T |
call(Throwables.Callable<T,RuntimeException> callable) |
<E> Iterator<E> |
iterate(Iterator<E> iter)
Deprecated.
replaced by
RetryR#iterate(Iterator, int). |
<E> Iterator<E> |
iterate(Iterator<E> iter,
int totalRetryTimes) |
static <R> Retry.RetryR<R> |
of(int retryTimes,
long retryInterval,
BiPredicate<? super R,? super RuntimeException> retryCondition) |
static Retry.RetryR<Void> |
of(int retryTimes,
long retryInterval,
Predicate<? super RuntimeException> retryCondition) |
void |
run(Runnable cmd) |
public static Retry.RetryR<Void> of(int retryTimes, long retryInterval, Predicate<? super RuntimeException> retryCondition)
retryTimes - retryInterval - retryCondition - public static <R> Retry.RetryR<R> of(int retryTimes, long retryInterval, BiPredicate<? super R,? super RuntimeException> retryCondition)
R - retryTimes - retryInterval - retryCondition - public T call(Throwables.Callable<T,RuntimeException> callable)
callable - RuntimeException - the exception@Deprecated public <E> Iterator<E> iterate(Iterator<E> iter)
RetryR#iterate(Iterator, int).E - iter - Copyright © 2021. All rights reserved.