Interface ReceivedSnapshot

All Superinterfaces:
PersistableSnapshot
All Known Implementing Classes:
FileBasedReceivedSnapshot

public interface ReceivedSnapshot extends PersistableSnapshot
A received volatile snapshot, which consist of several SnapshotChunk's. It can be persisted after all chunks have been received and consumed.
  • Method Details

    • index

      long index()
      The index of the current receiving snapshot.
      Returns:
      the snapshot's index
    • apply

      Applies the next SnapshotChunk to 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 - the SnapshotChunk which should be applied