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