Interface SnapshotTransfer

All Superinterfaces:
AsyncClosable
All Known Implementing Classes:
SnapshotTransferImpl

public interface SnapshotTransfer extends AsyncClosable
Receive a complete snapshot from a SnapshotTransferService by repeatedly asking for the next chunk until all chunks are received. No retry is done on the futures, if you want support for retry, wrap with retries.

Snapshots are received in the .

  • Method Details

    • getLatestSnapshot

      ActorFuture<PersistedSnapshot> getLatestSnapshot(int partitionId)
      Parameters:
      partitionId - the partition to get the snapshot from
      Returns:
      a persisted snapshot satisfying the parameters' requirements