Class TransactionalComponentByLock
- java.lang.Object
-
- org.apache.jena.dboe.transaction.txn.TransactionalComponentLifecycle<java.lang.Object>
-
- org.apache.jena.dboe.transaction.txn.TransactionalComponentByLock
-
- All Implemented Interfaces:
TransactionalComponent
public class TransactionalComponentByLock extends TransactionalComponentLifecycle<java.lang.Object>
Implementation of the component interface forTransactionalComponent. 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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcleanStart()Indicate that no recovery is being done (the journal thinks everything was completed last time)voidfinishRecovery()End of the recovery phasevoidrecover(java.nio.ByteBuffer ref)Notification thatrefwas really committed and is being recovered.voidstartRecovery()-
Methods inherited from class org.apache.jena.dboe.transaction.txn.TransactionalComponentLifecycle
abort, attach, begin, commit, commitEnd, commitPrepare, complete, detach, getComponentId, getComponentState, promote, setComponentState, shutdown
-
-
-
-
Method Detail
-
startRecovery
public void startRecovery()
- Specified by:
startRecoveryin interfaceTransactionalComponent- Specified by:
startRecoveryin classTransactionalComponentLifecycle<java.lang.Object>
-
recover
public void recover(java.nio.ByteBuffer ref)
Description copied from interface:TransactionalComponentNotification thatrefwas really committed and is being recovered.- Specified by:
recoverin interfaceTransactionalComponent- Specified by:
recoverin classTransactionalComponentLifecycle<java.lang.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<java.lang.Object>
-
cleanStart
public void cleanStart()
Description copied from interface:TransactionalComponentIndicate that no recovery is being done (the journal thinks everything was completed last time)
-
-