public class EasyRetry extends Object
| 构造器和说明 |
|---|
EasyRetry() |
| 限定符和类型 | 方法和说明 |
|---|---|
static <X extends Throwable> |
runWithRetry(int maxRetryTimes,
long retryPeriod,
ThrowableRunnable<X> func) |
static <X extends Throwable> |
runWithRetry(int maxRetryTimes,
long retryPeriod,
ThrowableRunnable<X> func,
Predicate<Throwable> exceptionChecker) |
static <T,X extends Throwable> |
supplyWithRetry(int maxRetryTimes,
long retryPeriod,
ThrowableSupplier<T,X> func) |
static <T,X extends Throwable> |
supplyWithRetry(int maxRetryTimes,
long retryPeriod,
ThrowableSupplier<T,X> func,
Predicate<Throwable> exceptionChecker) |
public static <X extends Throwable> void runWithRetry(int maxRetryTimes, long retryPeriod, ThrowableRunnable<X> func) throws X extends Throwable
X extends Throwablepublic static <X extends Throwable> void runWithRetry(int maxRetryTimes, long retryPeriod, ThrowableRunnable<X> func, Predicate<Throwable> exceptionChecker) throws X extends Throwable
X extends Throwablepublic static <T,X extends Throwable> T supplyWithRetry(int maxRetryTimes, long retryPeriod, ThrowableSupplier<T,X> func) throws X extends Throwable
X extends ThrowableCopyright © 2023 wuyushuo. All rights reserved.