Interface SnapshotMetadata

All Known Implementing Classes:
FileBasedSnapshotMetadata

public interface SnapshotMetadata
  • 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.
    • isBootstrap

      boolean isBootstrap()
      Returns:
      true if the snapshot is a bootstrap snapshot, i.e. a snapshot used to bootstrap a new partition with the "global" data from another partition