Interface SnapshotIndexRepository
-
public interface SnapshotIndexRepositoryRepository to store aSnapshotIndexcreated 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 givenSnapshotIndexin the repository.
-
-
-
Method Detail
-
save
@NonNull @NonNull java.util.concurrent.CompletionStage<java.lang.Void> save(@NonNull @NonNull SnapshotIndex snapshotIndex)Save the givenSnapshotIndexin 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
-
-