public class RetryTemplate extends Object
Others retry framework:
org.springframework.retry:spring-retry:2.0.7
com.github.rholder:guava-retrying:2.0.0
dev.failsafe:failsafe:3.3.2
io.github.resilience4j:resilience4j-retry:2.2.0
| 构造器和说明 |
|---|
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 © 2025. All rights reserved.