Interface SnapshotPageRepository
-
public interface SnapshotPageRepository
Repository to store snapshot pages produced bySnapshotProducer
.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description @NonNull java.util.concurrent.CompletionStage<java.lang.Void>
save(@NonNull SnapshotId snapshotId, @NonNull PageId pageId, @NonNull Page<@NonNull SnapshotPageHeader,@NonNull SnapshotEntityHeader> page)
Save the given snapshot page in the repository.
-
-
-
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 ofpageId
- the ID of this pagepage
- the page data- Returns:
- CompletionStage
-
-