- 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 Summary
Modifier and TypeMethodDescriptionvoidabort(Transaction txn) End of active phase - will not be making these changes.voidbegin(Transaction txn) Start an update transactionvoidAll done - transaction committed and incorporated in the base dataset - can now tidy up - called during journal flush if commiting.voidcommitPrepare(Transaction txn) Prepare to commit; end of active phase.voidcommitted(Transaction txn) The commit has happenedvoidUpdate the base data - called during journal flush.
-
Method Details
-
begin
Start an update transaction -
abort
End of active phase - will not be making these changes. -
commitPrepare
Prepare to commit; end of active phase. Make changes safe; do not update the base data. -
committed
The commit has happened -
enactCommitted
Update the base data - called during journal flush. -
clearupCommitted
All done - transaction committed and incorporated in the base dataset - can now tidy up - called during journal flush if commiting.
-