Interface TransactionListener

  • All Known Implementing Classes:

    public interface TransactionListener
    TransactionListener provides callbacks when a transaction is committed.
    • Method Detail

      • beforeCommit

        void beforeCommit​(TransactionResource resource,
                          String lockToken)
        This method is called right before a transaction is committed.
        resource - the transaction resource which will be committed.
        lockToken - the lock token
      • afterCommit

        void afterCommit​(TransactionResource resource,
                         String lockToken,
                         boolean success)
        This method is called after the commit has been executed.
        resource - the transaction resource which had been committed.
        lockToken - the lock token.
        success - if the commit was successful.