Interface ReceivableSnapshotStoreFactory

All Known Implementing Classes:
FileBasedSnapshotStoreFactory
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface ReceivableSnapshotStoreFactory
Creates a snapshot store which should store its PersistedSnapshot and ReceivedSnapshot instances in the given directory.
  • Method Details

    • createReceivableSnapshotStore

      ReceivableSnapshotStore createReceivableSnapshotStore(Path directory, int partitionId)
      Creates a snapshot store operating in the given directory.
      Parameters:
      directory - the root directory where snapshots should be stored
      partitionId - the id of the partition for this store
      Returns:
      a new PersistedSnapshotStore