Interface SnapshotPageRepository


  • public interface SnapshotPageRepository
    Repository to store snapshot pages produced by SnapshotProducer.
    • Method Detail

      • save

        @NonNull
        @NonNull java.util.concurrent.CompletionStage<java.lang.Void> save​(@NonNull
                                                                           @NonNull SnapshotId snapshotId,
                                                                           @NonNull
                                                                           @NonNull PageId pageId,
                                                                           @NonNull
                                                                           @NonNull Page<@NonNull SnapshotPageHeader,​@NonNull SnapshotEntityHeader> page)
        Save the given snapshot page in the repository.

        The combination of snapshot ID and page ID uniquely identifies the page. Page IDs are not necessarily unique across different snapshots.

        What parts of the page are stored, and in what format, is up to the implementor. The snapshot producer implementation doesn't define a way to retrieve a page from the repository, so implementations are free to store or not store aspects of the page as needed for how they serve pages over HTTP.

        Parameters:
        snapshotId - the ID of the snapshot this page is part of
        pageId - the ID of this page
        page - the page data
        Returns:
        CompletionStage