Interface SnapshotIndexRepository
-
public interface SnapshotIndexRepository
Repository to store aSnapshotIndex
created by the snapshot consumer.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description @NonNull java.util.concurrent.CompletionStage<java.lang.Void>
save(@NonNull SnapshotIndex snapshotIndex)
Save the givenSnapshotIndex
in the repository.
-
-
-
Method Detail
-
save
@NonNull @NonNull java.util.concurrent.CompletionStage<java.lang.Void> save(@NonNull @NonNull SnapshotIndex snapshotIndex)
Save the givenSnapshotIndex
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
-
-