Package com.landawn.abacus.util
Class Retry.RetryR<T>
java.lang.Object
com.landawn.abacus.util.Retry.RetryR<T>
-
Method Summary
Modifier and TypeMethodDescriptioncall
(Throwables.Callable<T, RuntimeException> callable) <E> Iterator<E>
Deprecated.<E> Iterator<E>
static <R> Retry.RetryR<R>
of
(int retryTimes, long retryIntervallInMillis, BiPredicate<? super R, ? super RuntimeException> retryCondition) static Retry.RetryR<Void>
of
(int retryTimes, long retryIntervallInMillis, Predicate<? super RuntimeException> retryCondition) void
-
Method Details
-
of
public static Retry.RetryR<Void> of(int retryTimes, long retryIntervallInMillis, Predicate<? super RuntimeException> retryCondition) - Parameters:
retryTimes
-retryIntervallInMillis
-retryCondition
-- Returns:
-
of
public static <R> Retry.RetryR<R> of(int retryTimes, long retryIntervallInMillis, BiPredicate<? super R, ? super RuntimeException> retryCondition) - Type Parameters:
R
-- Parameters:
retryTimes
-retryIntervallInMillis
-retryCondition
-- Returns:
-
run
- Parameters:
cmd
-
-
call
- Parameters:
callable
-- Returns:
- Throws:
RuntimeException
- the exception
-
iterate
Deprecated.replaced byRetryR#iterate(Iterator, int)
.- Type Parameters:
E
-- Parameters:
iter
-- Returns:
-
iterate
- Type Parameters:
E
-- Parameters:
iter
-totalRetryTimes
-- Returns:
-
RetryR#iterate(Iterator, int)
.