public class TransactionalComponentByLock extends TransactionalComponentLifecycle<Object>
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.TransactionalComponentLifecycle.ComponentState<X>| Modifier and Type | Method and Description |
|---|---|
void |
cleanStart()
Indicate that no recovery is being done (the journal thinks everything was completed last time)
|
void |
finishRecovery()
End of the recovery phase
|
void |
recover(ByteBuffer ref)
Notification that
ref was really committed and is being recovered. |
void |
startRecovery() |
abort, attach, begin, commit, commitEnd, commitPrepare, complete, detach, getComponentId, getComponentState, promote, setComponentState, shutdownpublic void startRecovery()
startRecovery in interface TransactionalComponentstartRecovery in class TransactionalComponentLifecycle<Object>public void recover(ByteBuffer ref)
TransactionalComponentref was really committed and is being recovered.recover in interface TransactionalComponentrecover in class TransactionalComponentLifecycle<Object>ref - Same bytes as were written during prepare originally.public void finishRecovery()
TransactionalComponentfinishRecovery in interface TransactionalComponentfinishRecovery in class TransactionalComponentLifecycle<Object>public void cleanStart()
TransactionalComponentLicensed under the Apache License, Version 2.0