Package io.quarkus.narayana.jta
Interface TransactionRunner
- All Known Subinterfaces:
TransactionRunnerOptions
- All Known Implementing Classes:
TransactionRunnerImpl
public interface TransactionRunner
Runs tasks in transactions with pre-defined semantics and options.
-
Method Summary
-
Method Details
-
run
Runs the given runnable, starting/suspending transactions as required by the selectedsemantics.- Parameters:
task- A task to run with the selected transaction semantics.
-
call
Calls the given callable, starting/suspending transactions as required by the selectedsemantics.If the task throws a checked exception it will be wrapped with a
QuarkusTransactionException- Parameters:
task- A task to run with the selected transaction semantics.- Returns:
- The value returned by
task.call(). - Throws:
QuarkusTransactionException- If the task throws a checked exception.
-