Interface StateSnapshot
- All Superinterfaces:
Immutable
- All Known Subinterfaces:
Snapshot.State
- All Known Implementing Classes:
EmptyState,ShardSnapshotState
Marker interface for objects representing a snapshot of RAFT-replicated user state. A
StateSnapshot
represents a logical sum of all StateCommands applied to the journal at a particular point in time.-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceStateSnapshot.Reader<T extends StateSnapshot>static interfaceStateSnapshot.Support<T extends StateSnapshot>A combination of aStateSnapshot.Readerand aStateSnapshot.Writerfor a concreteStateSnapshottype, as indicated byStateSnapshot.Support.snapshotType().static final classStateSnapshot.ToStorage<T extends StateSnapshot>AStateSnapshoton its way to storage.static interfaceStateSnapshot.Writer<T extends StateSnapshot> -
Method Summary
Modifier and TypeMethodDescriptiondefault booleanIndicate whether the snapshot requires migration, i.e. a new snapshot should be created after recovery.
-
Method Details
-
needsMigration
default boolean needsMigration()Indicate whether the snapshot requires migration, i.e. a new snapshot should be created after recovery. Default implementation returnsfalse, i.e. do not re-snapshot.- Returns:
trueif complete recovery based upon this snapshot should trigger a new snapshot.
-