public class Retry extends Object
| 构造器和说明 |
|---|
Retry() |
| 限定符和类型 | 方法和说明 |
|---|---|
static <T> T |
doRetry(Callable<T> callable,
int retryTimes,
long sleepTimeInMilliSecond,
boolean exponential,
Class<? extends Throwable>... retryExceptionClasses) |
static <T> T |
doRetry(Callable<T> callable,
int retryTimes,
long sleepTimeInMilliSecond,
Class<? extends Throwable>... retryExceptionClasses) |
static void |
doRetry(Runnable runnable,
int retryTimes,
long sleepTimeInMilliSecond,
boolean exponential,
Class<? extends Throwable>... retryExceptionClasses) |
static void |
doRetry(Runnable runnable,
int retryTimes,
long sleepTimeInMilliSecond,
Class<? extends Throwable>... retryExceptionClasses) |
public static <T> T doRetry(Callable<T> callable, int retryTimes, long sleepTimeInMilliSecond, Class<? extends Throwable>... retryExceptionClasses) throws Exception
Exceptionpublic static <T> T doRetry(Callable<T> callable, int retryTimes, long sleepTimeInMilliSecond, boolean exponential, Class<? extends Throwable>... retryExceptionClasses) throws Exception
Exceptionpublic static void doRetry(Runnable runnable, int retryTimes, long sleepTimeInMilliSecond, Class<? extends Throwable>... retryExceptionClasses)
Copyright © 2024 fossc. All rights reserved.