Interface SnapshotMetadata

All Known Implementing Classes:
FileBasedSnapshotMetadata

public interface SnapshotMetadata
  • Method Summary

    Modifier and Type
    Method
    Description
    long
     
    long
    A snapshot is only valid if the logstream consists of the events from the processedPosition up to the followup event position.
    long
     
    int
     
  • 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.