Class LocalSnapshotStore

java.lang.Object
org.apache.pekko.persistence.snapshot.japi.SnapshotStore
org.opendaylight.controller.cluster.persistence.LocalSnapshotStore
All Implemented Interfaces:
Actor, ActorLogging, SnapshotStore

@Deprecated(since="11.0.0", forRemoval=true) public final class LocalSnapshotStore extends SnapshotStore
Deprecated, for removal: This API element is subject to removal in a future version.
Akka SnapshotStore implementation backed by the local file system. This class was patterned after akka's LocalSnapshotStore class and exists because akka's version serializes to a byte[] before persisting to the file which will fail if the data reaches or exceeds Integer.MAX_VALUE in size. This class avoids that issue by serializing the data directly to the file.
Author:
Thomas Pantelis
  • Constructor Details

    • LocalSnapshotStore

      public LocalSnapshotStore(com.typesafe.config.Config config)
      Deprecated, for removal: This API element is subject to removal in a future version.
  • Method Details

    • preStart

      public void preStart() throws Exception
      Deprecated, for removal: This API element is subject to removal in a future version.
      Specified by:
      preStart in interface Actor
      Overrides:
      preStart in class SnapshotStore
      Throws:
      Exception
    • doLoadAsync

      public scala.concurrent.Future<Optional<SelectedSnapshot>> doLoadAsync(String persistenceId, SnapshotSelectionCriteria criteria)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • doSaveAsync

      public scala.concurrent.Future<Void> doSaveAsync(SnapshotMetadata metadata, Object snapshot)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • doDeleteAsync

      public scala.concurrent.Future<Void> doDeleteAsync(SnapshotMetadata metadata)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • doDeleteAsync

      public scala.concurrent.Future<Void> doDeleteAsync(String persistenceId, SnapshotSelectionCriteria criteria)
      Deprecated, for removal: This API element is subject to removal in a future version.