Class DbTransactionExecutor

    • Method Detail

      • doInTxWithRetry

        public void doInTxWithRetry​(Runnable action)
        Executes the runnable within a DB transaction that will retry entire block on MySQL deadlock exceptions.
        Parameters:
        action - the code to execute
      • doInTx

        public void doInTx​(Runnable action)
        Executes the runnable within a DB transaction. MySQL deadlock exceptions are NOT retried.
        Parameters:
        action - the code to execute