Interface RaftActorSnapshotCohort<T extends Snapshot.State>
- Type Parameters:
T
- type of state
- All Known Implementing Classes:
NoopRaftActorSnapshotCohort
Interface for a class that participates in raft actor snapshotting.
- Author:
- Thomas Pantelis
-
Method Summary
Modifier and TypeMethodDescriptionvoid
applySnapshot
(@NonNull T snapshotState) This method is called to apply a snapshot installed by the leader.support()
Returns theStateSnapshot
.@NonNull T
Take a snapshot of current state.
-
Method Details
-
takeSnapshot
@NonNull T takeSnapshot()Take a snapshot of current state.- Returns:
- current snapshot state
-
applySnapshot
This method is called to apply a snapshot installed by the leader.- Parameters:
snapshotState
- a snapshot of the state of the actor
-
support
StateSnapshot.Support<T> support()Returns theStateSnapshot
.- Returns:
- the
StateSnapshot
-