Class TransactionalComponentBase<X>
java.lang.Object
org.apache.jena.dboe.transaction.txn.TransactionalComponentLifecycle<X>
org.apache.jena.dboe.transaction.txn.TransactionalComponentBase<X>
- All Implemented Interfaces:
TransactionalComponent
A transaction component that does nothing - can be used as a helper for
management tasks hooked into the transaction component lifecycle but which
are not stateful across restarts.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.jena.dboe.transaction.txn.TransactionalComponentLifecycle
TransactionalComponentLifecycle.ComponentState<X> -
Constructor Summary
Constructors -
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
-
Constructor Details
-
TransactionalComponentBase
-
-
Method Details
-
startRecovery
public void startRecovery()- Specified by:
startRecoveryin interfaceTransactionalComponent- Specified by:
startRecoveryin classTransactionalComponentLifecycle<X>
-
recover
Description copied from interface:TransactionalComponentNotification thatrefwas really committed and is being recovered.- Specified by:
recoverin interfaceTransactionalComponent- Specified by:
recoverin classTransactionalComponentLifecycle<X>- 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<X>
-
cleanStart
public void cleanStart()Description copied from interface:TransactionalComponentIndicate that no recovery is being done (the journal thinks everything was completed last time)
-