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
ContextTransactionalCallable is a better fit.
| Modifier and Type | Method and Description |
|---|---|
| public static <T> TransactionalCallable | of(TransactionalCallable<T>... callables)
Wrap a set of nested |
| public static <T> TransactionalCallable | of(Collection<? extends TransactionalCallable<T>> callables)
Wrap a set of nested |
| public static <T, R> TransactionalCallable | of(TransactionalCallable<T>[] callables, Collector<T, ?, R> collector)
Wrap a set of nested |
| public static <T, R> TransactionalCallable | of(Collection<? extends TransactionalCallable<T>> callables, Collector<T, ?, R> collector)
Wrap a set of nested |
| public T | Returns: The outcome of the transaction.The configuration)Configuration in whose context the
transaction is run.Run the transactional code. |
| of | back to summary |
|---|---|
| public static <T> TransactionalCallable Wrap a set of nested
| |
| of | back to summary |
|---|---|
| public static <T> TransactionalCallable Wrap a set of nested | |
| of | back to summary |
|---|---|
| public static <T, R> TransactionalCallable Wrap a set of nested | |
| of | back to summary |
|---|---|
| public static <T, R> TransactionalCallable Wrap a set of nested | |
| run | back to summary |
|---|---|
| public T 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
| |