Interface TransactionLifecycle

All Known Implementing Classes:
BlockMgrJournal, ObjectFileTransComplex

public interface TransactionLifecycle
Interface that components of the transaction system implement. This is not the public/application interface to transactions.
  • Method Details

    • begin

      void begin(Transaction txn)
      Start an update transaction
    • abort

      void abort(Transaction txn)
      End of active phase - will not be making these changes.
    • commitPrepare

      void commitPrepare(Transaction txn)
      Prepare to commit; end of active phase. Make changes safe; do not update the base data.
    • committed

      void committed(Transaction txn)
      The commit has happened
    • enactCommitted

      void enactCommitted(Transaction txn)
      Update the base data - called during journal flush.
    • clearupCommitted

      void clearupCommitted(Transaction txn)
      All done - transaction committed and incorporated in the base dataset - can now tidy up - called during journal flush if commiting.