Package io.camunda.zeebe.snapshots
Interface SnapshotMetadata
- All Known Implementing Classes:
FileBasedSnapshotMetadata
public interface SnapshotMetadata
-
Method Summary
Modifier and TypeMethodDescriptionlonglongA snapshot is only valid if the logstream consists of the events from the processedPosition up to the followup event position.longintversion()
-
Method Details
-
version
int version()- Returns:
- version of the snapshot
-
processedPosition
long processedPosition()- Returns:
- processed position in the snapshot (same as in SnapshotId)
-
exportedPosition
long exportedPosition()- Returns:
- exported position in the snapshot (same as in SnapshotId)
-
lastFollowupEventPosition
long lastFollowupEventPosition()A snapshot is only valid if the logstream consists of the events from the processedPosition up to the followup event position.- Returns:
- position of the last followUpEvent that must be in the logstream to ensure that the system can recover from the snapshot and the logstream.
-