Package io.camunda.zeebe.snapshots.impl
Class FileBasedSnapshotId
java.lang.Object
io.camunda.zeebe.snapshots.impl.FileBasedSnapshotId
- All Implemented Interfaces:
SnapshotId,Comparable<SnapshotId>
-
Method Summary
Modifier and TypeMethodDescriptionbooleanlonglonggetIndex()longThe string representation of the snapshot identifier, looks like 'index-term-timestamp'.longgetTerm()inthashCode()static Optional<FileBasedSnapshotId> ofFileName(String name) static Optional<FileBasedSnapshotId> toString()Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface io.camunda.zeebe.snapshots.SnapshotId
compareTo
-
Method Details
-
ofPath
-
ofFileName
-
getIndex
public long getIndex()- Specified by:
getIndexin interfaceSnapshotId- Returns:
- the index of the snapshot
-
getTerm
public long getTerm()- Specified by:
getTermin interfaceSnapshotId- Returns:
- the term when the snapshot was taken
-
getProcessedPosition
public long getProcessedPosition()- Specified by:
getProcessedPositionin interfaceSnapshotId- Returns:
- the processed position when the snapshot was taken
-
getExportedPosition
public long getExportedPosition()- Specified by:
getExportedPositionin interfaceSnapshotId- Returns:
- the exported position when the snapshot was taken
-
getSnapshotIdAsString
Description copied from interface:SnapshotIdThe string representation of the snapshot identifier, looks like 'index-term-timestamp'.- Specified by:
getSnapshotIdAsStringin interfaceSnapshotId- Returns:
- the string representation
-
hashCode
public int hashCode() -
equals
-
toString
-