Interface SubordinateTransactionControl


  • public interface SubordinateTransactionControl
    The control interface for subordinate transactions. This interface is used in the following cases:
    • When a subordinate transaction is locally inflowed, an instance of this interface is used to control the lifecycle of the local transaction (the transaction's lifecycle methods are blocked in this case).
    • The local handle for a subordinate transaction implements this interface.
    Author:
    David M. Lloyd
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void beforeCompletion()
      Perform before-commit operations, including running all transaction synchronizations.
      void commit​(boolean onePhase)
      Commit a transaction, either in a single phase or after a previous prepare.
      void end​(int flags)
      End work on behalf of a transaction branch, disassociating the subordinate from the transaction branch.
      void forget()
      Forget the (previously prepared) transaction.
      int prepare()
      Prepare the transaction.
      void rollback()
      Roll back the subordinate.