Interface TransactionObserver


public interface TransactionObserver
Observer of internal transaction events.

A TransactionObserver must be registered with the TransactionCoordinator by calling addObserver().

  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Callback for processing the beginning of a transaction.
    void
    afterCompletion(boolean successful, boolean delayed)
    Callback for processing the last phase of transaction completion.
    void
    Callback for processing the initial phase of transaction completion.
  • Method Details

    • 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 some way other than via 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?