Interface TransactionRunner

    • Method Detail

      • run

        void run​(Runnable task)
        Runs the given runnable, starting/suspending transactions as required by the selected semantics.
        Parameters:
        task - A task to run with the selected transaction semantics.
      • call

        <T> T call​(Callable<T> task)
        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

        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.