| 程序包 | 说明 |
|---|---|
| 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) |
| 限定符和类型 | 方法和说明 |
|---|---|
default <E> Throwables.ThrowingSupplier<E,Throwable> |
Throwables.ThrowingRunnable.toThrowingSupplier(E result) |
| 限定符和类型 | 方法和说明 |
|---|---|
static <R> Supplier<R> |
Throwables.caught(Throwables.ThrowingSupplier<R,?> supplier) |
static <R> R |
Throwables.ThrowingSupplier.caught(Throwables.ThrowingSupplier<R,?> supplier) |
static <R> R |
Throwables.ThrowingSupplier.caught(Throwables.ThrowingSupplier<R,?> supplier,
R defaultValue,
Supplier<String> message) |
static <R,T extends Throwable> |
Throwables.ThrowingSupplier.checked(Throwables.ThrowingSupplier<R,T> supplier) |
static <R> R |
Throwables.ThrowingSupplier.get(Throwables.ThrowingSupplier<R,?> supplier) |
static <R> R |
Throwables.ThrowingSupplier.ignored(Throwables.ThrowingSupplier<R,?> supplier) |
static <R> R |
Throwables.ThrowingSupplier.ignored(Throwables.ThrowingSupplier<R,?> supplier,
R defaultValue) |
| 限定符和类型 | 方法和说明 |
|---|---|
static <R> R |
TransactionUtils.doInNestedTransaction(org.springframework.transaction.PlatformTransactionManager txManager,
Throwables.ThrowingSupplier<R,Throwable> action,
Consumer<Throwable> log)
如果当前存在事务则开启一个嵌套事务,如果当前不存在事务则新建一个事务并运行。
|
static <R> R |
TransactionUtils.doInRequiresNewTransaction(org.springframework.transaction.PlatformTransactionManager txManager,
Throwables.ThrowingSupplier<R,Throwable> action,
Consumer<Throwable> log)
创建一个新事务,如果当前存在事务,则将这个事务挂起。
|
Copyright © 2023. All rights reserved.