FunctionalInterface that wraps transactional code.
Transactional code should not depend on any captured scope, but use the
argument Configuration passed to the run(Configuration)
method to derive its transaction context.
If transactional code needs to depend on captured scope ("context"), then
ContextTransactionalRunnable is a better fit.
| Modifier and Type | Method and Description |
|---|---|
| public static TransactionalRunnable | of(TransactionalRunnable... runnables)
Wrap a set of nested |
| public static TransactionalRunnable | of(Collection<? extends TransactionalRunnable> runnables)
Wrap a set of nested |
| public void | run(Configuration
The configuration)Configuration in whose context the
transaction is run.Run the transactional code. |
| of | back to summary |
|---|---|
| public static TransactionalRunnable of(TransactionalRunnable... runnables) Wrap a set of nested | |
| of | back to summary |
|---|---|
| public static TransactionalRunnable of(Collection<? extends TransactionalRunnable> runnables) Wrap a set of nested | |
| run | back to summary |
|---|---|
| public void run(Configuration configuration) throws Throwable Run the transactional code.
If this method completes normally, and this is not a nested transaction,
then the transaction will be committed. If this method completes with an
exception (any
| |