Package io.camunda.zeebe.snapshots
Interface ConstructableSnapshotStore
- All Superinterfaces:
AutoCloseable,CloseableSilently,PersistedSnapshotStore
- All Known Implementing Classes:
FileBasedSnapshotStore
A persisted snapshot store than can create a new snapshot and persists it.
-
Method Summary
Modifier and TypeMethodDescriptionnewTransientSnapshot(long index, long term, long processedPosition, long exportedPosition) Starts a new transient snapshot which can be persisted after the snapshot was taken.Methods inherited from interface io.camunda.zeebe.util.CloseableSilently
closeMethods inherited from interface io.camunda.zeebe.snapshots.PersistedSnapshotStore
addSnapshotListener, delete, getAvailableSnapshots, getCompactionBound, getCurrentSnapshotIndex, getLatestSnapshot, getPath, hasSnapshotId, purgePendingSnapshots, removeSnapshotListener
-
Method Details
-
newTransientSnapshot
Either<SnapshotException,TransientSnapshot> newTransientSnapshot(long index, long term, long processedPosition, long exportedPosition) Starts a new transient snapshot which can be persisted after the snapshot was taken.- Parameters:
index- the index to which the snapshot corresponds toterm- the term to which the snapshots corresponds toprocessedPosition- the processed position in the snapshotexportedPosition- the exported position in the snapshot- Returns:
- either an exception or transientSnapshot, if it was taken successfully.
-