Interface TransactionObserver


  • public interface TransactionObserver
    Observer of internal transaction events.
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void afterBegin()
      Callback for processing the beginning of a transaction.
      void afterCompletion​(boolean successful, boolean delayed)
      Callback for processing the last phase of transaction completion.
      void beforeCompletion()
      Callback for processing the initial phase of transaction completion.
    • Method Detail

      • afterBegin

        void afterBegin()
        Callback for processing the beginning of a transaction.

        Do not rely on this being called as the transaction may be started in a manner other than through the Transaction API.

      • beforeCompletion

        void beforeCompletion()
        Callback for processing the initial phase of transaction completion.
      • afterCompletion

        void afterCompletion​(boolean successful,
                             boolean delayed)
        Callback for processing the last phase of transaction completion.
        Parameters:
        successful - Was the transaction successful?