Package io.camunda.zeebe.snapshots
Interface ReceivedSnapshot
- All Superinterfaces:
PersistableSnapshot
- All Known Implementing Classes:
FileBasedReceivedSnapshot
A received volatile snapshot, which consist of several
SnapshotChunk's. It can be
persisted after all chunks have been received and consumed.-
Method Summary
Modifier and TypeMethodDescriptionapply(SnapshotChunk chunk) Applies the nextSnapshotChunkto the snapshot.longindex()The index of the current receiving snapshot.Methods inherited from interface io.camunda.zeebe.snapshots.PersistableSnapshot
abort, getPath, persist, snapshotId
-
Method Details
-
index
long index()The index of the current receiving snapshot.- Returns:
- the snapshot's index
-
apply
Applies the nextSnapshotChunkto the snapshot. Based on the implementation the chunk can be validated before applied to the snapshot. In case of failure, the future will be completed with a SnapshotWriteException.- Parameters:
chunk- theSnapshotChunkwhich should be applied
-