public class RetryTemplate extends Object
| 构造器和说明 |
|---|
RetryTemplate() |
| 限定符和类型 | 方法和说明 |
|---|---|
static void |
execute(Throwables.ThrowingRunnable<Throwable> action,
int retryMaxCount,
long retryBackoffPeriod) |
static <T> T |
execute(Throwables.ThrowingSupplier<T,Throwable> action,
int retryMaxCount,
long retryBackoffPeriod) |
public static void execute(Throwables.ThrowingRunnable<Throwable> action, int retryMaxCount, long retryBackoffPeriod) throws Throwable
Throwablepublic static <T> T execute(Throwables.ThrowingSupplier<T,Throwable> action, int retryMaxCount, long retryBackoffPeriod) throws Throwable
ThrowableCopyright © 2023. All rights reserved.