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) |
static void |
executeQuietly(Throwables.ThrowingRunnable<Throwable> action,
int retryMaxCount,
long retryBackoffPeriod) |
static <T> T |
executeQuietly(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
Throwablepublic static void executeQuietly(Throwables.ThrowingRunnable<Throwable> action, int retryMaxCount, long retryBackoffPeriod)
public static <T> T executeQuietly(Throwables.ThrowingSupplier<T,Throwable> action, int retryMaxCount, long retryBackoffPeriod)
Copyright © 2024. All rights reserved.