public interface RaftActorRecoveryCohort
| Modifier and Type | Method and Description |
|---|---|
void |
appendRecoveredLogEntry(Payload data)
This method is called during recovery to append state data to the current batch.
|
void |
applyCurrentLogRecoveryBatch()
This method is called during recovery at the end of a batch to apply the current batched
log entries.
|
void |
applyRecoverySnapshot(Snapshot.State snapshotState)
This method is called during recovery to reconstruct the state of the actor.
|
@Nullable Snapshot |
getRestoreFromSnapshot()
Returns the snapshot to restore from on recovery.
|
void |
startLogRecoveryBatch(int maxBatchSize)
This method is called during recovery at the start of a batch of state entries.
|
void startLogRecoveryBatch(int maxBatchSize)
maxBatchSize - the maximum batch size.void appendRecoveredLogEntry(Payload data)
startLogRecoveryBatch(int).data - the state datavoid applyRecoverySnapshot(Snapshot.State snapshotState)
snapshotState - A snapshot of the state of the actorvoid applyCurrentLogRecoveryBatch()
appendRecoveredLogEntry(org.opendaylight.controller.cluster.raft.protobuff.client.messages.Payload).@Nullable Snapshot getRestoreFromSnapshot()
Copyright © 2019 OpenDaylight. All rights reserved.