Interface VTransactionListener

  • All Known Implementing Classes:
    VTransactionListenerImpl

    public interface VTransactionListener
    This class is used to listen events during the execution of the transaction.
    Author:
    npiedeloup
    • Method Detail

      • onStart

        void onStart()
        Notifies the start of the transaction.
      • onFinish

        void onFinish​(boolean commitSucceeded,
                      long elapsedTimeMs)
        Notifies the end of the transaction. This method is called on commit or rollback.
        Parameters:
        commitSucceeded - if the transaction has been committed successfully
        elapsedTimeMs - the elapse time in ms
      • logAfterCommitError

        void logAfterCommitError​(Throwable th)
        Parameters:
        th - the error