Uses of Interface
io.quarkus.narayana.jta.TransactionRunnerOptions
Packages that use TransactionRunnerOptions
-
Uses of TransactionRunnerOptions in io.quarkus.narayana.jta
Classes in io.quarkus.narayana.jta that implement TransactionRunnerOptionsMethods in io.quarkus.narayana.jta that return TransactionRunnerOptionsModifier and TypeMethodDescriptionstatic TransactionRunnerOptionsQuarkusTransaction.disallowingExisting()Starts the definition of a transaction runner, which can then be used to run a task (Runnable,Callable, ...), withTransactionSemantics.DISALLOW_EXISTINGsemantics: If a transaction is already associated with the current thread aQuarkusTransactionExceptionwill be thrown, Otherwise a new transaction is started, and follows all the normal lifecycle rules.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 TransactionRunnerOptionsQuarkusTransaction.joiningExisting()Starts the definition of a transaction runner, which can then be used to run a task (Runnable,Callable, ...), withTransactionSemantics.JOIN_EXISTINGsemantics: If no transaction is active then a new transaction will be started, and committed when the method ends.static TransactionRunnerOptionsQuarkusTransaction.requiringNew()Starts the definition of a transaction runner, which can then be used to run a task (Runnable,Callable, ...), withTransactionSemantics.REQUIRE_NEWsemantics: 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 TransactionRunnerOptionsQuarkusTransaction.runner(TransactionSemantics semantics) Starts the definition of a transaction runner, which can then be used to run a task (Runnable,Callable, ...), following the selectedTransactionSemantics.static TransactionRunnerOptionsQuarkusTransaction.suspendingExisting()Starts the definition of a transaction runner, which can then be used to run a task (Runnable,Callable, ...), withTransactionSemantics.SUSPEND_EXISTINGsemantics: If no transaction is active then these semantics are basically a no-op.TransactionRunnerOptions.timeout(int seconds) Sets the transaction timeout for transactions created by this runner.