Class TransactionRunnerImpl

    • Method Detail

      • run

        public void run​(Runnable task)
        Description copied from interface: TransactionRunner
        Runs the given runnable, starting/suspending transactions as required by the selected semantics.
        Specified by:
        run in interface TransactionRunner
        Parameters:
        task - A task to run with the selected transaction semantics.
      • call

        public <T> T call​(Callable<T> task)
        Description copied from interface: TransactionRunner
        Calls the given callable, starting/suspending transactions as required by the selected semantics.

        If the task throws a checked exception it will be wrapped with a QuarkusTransactionException

        Specified by:
        call in interface TransactionRunner
        Parameters:
        task - A task to run with the selected transaction semantics.
        Returns:
        The value returned by task.call().