| 程序包 | 说明 |
|---|---|
| cn.ponfee.disjob.common.base | |
| cn.ponfee.disjob.common.exception | |
| cn.ponfee.disjob.common.spring |
| 限定符和类型 | 方法和说明 |
|---|---|
static <T> T |
RetryTemplate.execute(Throwables.ThrowingSupplier<T,Throwable> action,
int retryMaxCount,
long retryBackoffPeriod) |
static <T> T |
RetryTemplate.executeQuietly(Throwables.ThrowingSupplier<T,Throwable> action,
int retryMaxCount,
long retryBackoffPeriod) |
| 限定符和类型 | 方法和说明 |
|---|---|
default <R> Throwables.ThrowingSupplier<R,T> |
Throwables.ThrowingRunnable.toSupplier(R result) |
| 限定符和类型 | 方法和说明 |
|---|---|
static <R> R |
Throwables.ThrowingSupplier.doCaught(Throwables.ThrowingSupplier<R,?> supplier) |
static <R> R |
Throwables.ThrowingSupplier.doCaught(Throwables.ThrowingSupplier<R,?> supplier,
R defaultValue,
Supplier<String> message) |
static <R> R |
Throwables.ThrowingSupplier.doChecked(Throwables.ThrowingSupplier<R,?> supplier) |
static <R> Supplier<R> |
Throwables.ThrowingSupplier.toCaught(Throwables.ThrowingSupplier<R,?> supplier) |
static <R> Supplier<R> |
Throwables.ThrowingSupplier.toCaught(Throwables.ThrowingSupplier<R,?> supplier,
R defaultValue,
Supplier<String> message) |
static <R> Supplier<R> |
Throwables.ThrowingSupplier.toChecked(Throwables.ThrowingSupplier<R,?> supplier) |
| 限定符和类型 | 方法和说明 |
|---|---|
static <R> R |
TransactionUtils.doInNestedTransaction(org.springframework.transaction.support.TransactionTemplate transactionTemplate,
Throwables.ThrowingSupplier<R,Throwable> action,
Consumer<Throwable> errorHandler)
如果当前存在事务则开启一个嵌套事务,如果当前不存在事务则新建一个事务并运行。
|
static <R> R |
TransactionUtils.doInRequiresNewTransaction(org.springframework.transaction.PlatformTransactionManager txManager,
Throwables.ThrowingSupplier<R,Throwable> action,
Consumer<Throwable> errorHandler)
创建一个新事务,如果当前存在事务,则将这个事务挂起。
|
Copyright © 2025. All rights reserved.