Class TransactionalComponentByLock
java.lang.Object
org.apache.jena.dboe.transaction.txn.TransactionalComponentLifecycle<Object>
org.apache.jena.dboe.transaction.txn.TransactionalComponentByLock
- All Implemented Interfaces:
TransactionalComponent
Implementation of the component interface for
TransactionalComponent.
Useful for in-memory transactions that do not provide durability or abort (undo).
When retro fitting to other systems, that may be the best that can be done.-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.jena.dboe.transaction.txn.TransactionalComponentLifecycle
TransactionalComponentLifecycle.ComponentState<X> -
Method Summary
Modifier and TypeMethodDescriptionvoidIndicate that no recovery is being done (the journal thinks everything was completed last time)voidEnd of the recovery phasevoidrecover(ByteBuffer ref) Notification thatrefwas really committed and is being recovered.voidMethods inherited from class org.apache.jena.dboe.transaction.txn.TransactionalComponentLifecycle
abort, attach, begin, commit, commitEnd, commitPrepare, complete, detach, getComponentId, getComponentState, promote, setComponentState, shutdown
-
Method Details
-
startRecovery
public void startRecovery()- Specified by:
startRecoveryin interfaceTransactionalComponent- Specified by:
startRecoveryin classTransactionalComponentLifecycle<Object>
-
recover
Description copied from interface:TransactionalComponentNotification thatrefwas really committed and is being recovered.- Specified by:
recoverin interfaceTransactionalComponent- Specified by:
recoverin classTransactionalComponentLifecycle<Object>- Parameters:
ref- Same bytes as were written during prepare originally.
-
finishRecovery
public void finishRecovery()Description copied from interface:TransactionalComponentEnd of the recovery phase- Specified by:
finishRecoveryin interfaceTransactionalComponent- Specified by:
finishRecoveryin classTransactionalComponentLifecycle<Object>
-
cleanStart
public void cleanStart()Description copied from interface:TransactionalComponentIndicate that no recovery is being done (the journal thinks everything was completed last time)
-