接口 TransactionObserver


  • public interface TransactionObserver
    Observer of internal transaction events.
    作者:
    Steve Ebersole
    • 方法概要

      所有方法 实例方法 抽象方法 
      修饰符和类型 方法 说明
      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.
    • 方法详细资料

      • 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.
        参数:
        successful - Was the transaction successful?