Interface SnapshotIndexRepository


  • public interface SnapshotIndexRepository
    Repository to store a SnapshotIndex created by the snapshot consumer.
    • Method Detail

      • save

        @NonNull
        @NonNull java.util.concurrent.CompletionStage<java.lang.Void> save​(@NonNull
                                                                           @NonNull SnapshotIndex snapshotIndex)
        Save the given SnapshotIndex in the repository.

        When this method is called, all pages that are part of the snapshot will have already been saved in the configured SnapshotPageRepository. Once the index is saved, the snapshot is done and can be served to consumers.

        Parameters:
        snapshotIndex - the snapshot index to store
        Returns:
        CompletionStage