public class TransactionalComponentBase<X> extends TransactionalComponentLifecycle<X>
TransactionalComponentLifecycle.ComponentState<X>| Constructor and Description |
|---|
TransactionalComponentBase(ComponentId id) |
| 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 TransactionalComponentBase(ComponentId id)
public void startRecovery()
startRecovery in interface TransactionalComponentstartRecovery in class TransactionalComponentLifecycle<X>public void recover(ByteBuffer ref)
TransactionalComponentref was really committed and is being recovered.recover in interface TransactionalComponentrecover in class TransactionalComponentLifecycle<X>ref - Same bytes as were written during prepare originally.public void finishRecovery()
TransactionalComponentfinishRecovery in interface TransactionalComponentfinishRecovery in class TransactionalComponentLifecycle<X>public void cleanStart()
TransactionalComponentLicensed under the Apache License, Version 2.0