- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
FunctionalInterfacethat wraps transactional code.
If transactional code needs to depend on captured scope ("context"), then
ContextTransactionalCallable is a better fit.
- Lukas Eder
runRun 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
Throwable), then the transaction is rolled back to the beginning of this
Configurationin whose context the transaction is run.
- The outcome of the transaction.
Throwable- Any exception that will cause a rollback of the code contained in this transaction. If this is a nested transaction, the rollback may be performed only to the state before executing this
R>TransactionalCallable<R> of (TransactionalCallable<T> callables, Collector<T, ?, R> collector)
R>TransactionalCallable<R> of (Collection<? extends TransactionalCallable<T>> callables, Collector<T, ?, R> collector)