Class TxnUtils
java.lang.Object
org.aksw.commons.txn.impl.TxnUtils
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidabort(Txn txn, TxnHandler handler) static voidapplyJournal(Txn txn, TxnHandler handler) static voidapplyJournalOld(Txn txn, TxnHandler handler) Deprecated.static voidcleanupStaleTxns(TxnMgr txnMgr, TxnHandler handler) static voidcommit(Txn txn, TxnHandler handler) static voidfinalizeCommit(Txn txn) Finalize all pending changes.static voidprecommit(Txn txn, TxnHandler handler) static voidrollbackOrEnd(Txn txn, TxnHandler handler) static voidunlock(Txn txn, TxnHandler handler)
-
Constructor Details
-
TxnUtils
public TxnUtils()
-
-
Method Details
-
cleanupStaleTxns
- Throws:
IOException
-
precommit
- Throws:
ExceptionIOException
-
commit
-
applyJournalOld
Deprecated.- Parameters:
txn-resourceAction- (resourceKey, isCommit) An action to run on a resource after changes were rolled back or committed - but before the resource is unlocked. Typically used to synchronize an in-memory cache.
-
applyJournal
-
finalizeCommit
Finalize all pending changes. All files of the transaction will be in their final state. -
unlock
-
abort
-
rollbackOrEnd
- Throws:
IOException
-