static TransactionRunnerOptions |
QuarkusTransaction.disallowingExisting() |
|
TransactionRunnerOptions |
TransactionRunnerOptions.exceptionHandler(Function<Throwable,TransactionExceptionResult> handler) |
Provides an exception handler that can make a decision to rollback or commit based on the type of exception.
|
static TransactionRunnerOptions |
QuarkusTransaction.joiningExisting() |
Starts the definition of a transaction runner,
which can then be used to run a task ( Runnable, Callable, ...),
with TransactionSemantics.JOIN_EXISTING semantics:
If no transaction is active then a new transaction will be started, and committed when the method ends.
|
static TransactionRunnerOptions |
QuarkusTransaction.requiringNew() |
Starts the definition of a transaction runner,
which can then be used to run a task ( Runnable, Callable, ...),
with TransactionSemantics.REQUIRE_NEW semantics:
If an existing transaction is already associated with the current thread then the transaction is suspended,
then a new transaction is started which follows all the normal lifecycle rules,
and when it's complete the original transaction is resumed.
|
static TransactionRunnerOptions |
QuarkusTransaction.runner(TransactionSemantics semantics) |
|
static TransactionRunnerOptions |
QuarkusTransaction.suspendingExisting() |
|
TransactionRunnerOptions |
TransactionRunnerOptions.timeout(int seconds) |
Sets the transaction timeout for transactions created by this runner.
|