Class LocalSnapshotStore
java.lang.Object
org.apache.pekko.persistence.snapshot.japi.SnapshotStore
org.opendaylight.controller.cluster.persistence.LocalSnapshotStore
- All Implemented Interfaces:
org.apache.pekko.actor.Actor
,org.apache.pekko.actor.ActorLogging
,org.apache.pekko.persistence.snapshot.SnapshotStore
@Deprecated(since="11.0.0",
forRemoval=true)
public final class LocalSnapshotStore
extends org.apache.pekko.persistence.snapshot.japi.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
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.pekko.actor.Actor
org.apache.pekko.actor.Actor.emptyBehavior$, org.apache.pekko.actor.Actor.ignoringBehavior$
-
Constructor Summary
ConstructorsConstructorDescriptionLocalSnapshotStore
(com.typesafe.config.Config config) Deprecated, for removal: This API element is subject to removal in a future version. -
Method Summary
Modifier and TypeMethodDescriptionscala.concurrent.Future
<Void> doDeleteAsync
(String persistenceId, org.apache.pekko.persistence.SnapshotSelectionCriteria criteria) Deprecated, for removal: This API element is subject to removal in a future version.scala.concurrent.Future
<Void> doDeleteAsync
(org.apache.pekko.persistence.SnapshotMetadata metadata) Deprecated, for removal: This API element is subject to removal in a future version.scala.concurrent.Future
<Optional<org.apache.pekko.persistence.SelectedSnapshot>> doLoadAsync
(String persistenceId, org.apache.pekko.persistence.SnapshotSelectionCriteria criteria) Deprecated, for removal: This API element is subject to removal in a future version.scala.concurrent.Future
<Void> doSaveAsync
(org.apache.pekko.persistence.SnapshotMetadata metadata, Object snapshot) Deprecated, for removal: This API element is subject to removal in a future version.void
preStart()
Deprecated, for removal: This API element is subject to removal in a future version.Methods inherited from class org.apache.pekko.persistence.snapshot.japi.SnapshotStore
aroundPostRestart, aroundPostStop, aroundPreRestart, aroundPreStart, aroundReceive, context, deleteAsync, deleteAsync, loadAsync, log, org$apache$pekko$actor$Actor$_setter_$context_$eq, org$apache$pekko$actor$Actor$_setter_$self_$eq, org$apache$pekko$actor$ActorLogging$$_log, org$apache$pekko$actor$ActorLogging$$_log_$eq, org$apache$pekko$persistence$snapshot$SnapshotStore$_setter_$org$apache$pekko$persistence$snapshot$SnapshotStore$$breaker_$eq, org$apache$pekko$persistence$snapshot$SnapshotStore$_setter_$org$apache$pekko$persistence$snapshot$SnapshotStore$$extension_$eq, org$apache$pekko$persistence$snapshot$SnapshotStore$_setter_$org$apache$pekko$persistence$snapshot$SnapshotStore$$publish_$eq, org$apache$pekko$persistence$snapshot$SnapshotStore$_setter_$receiveSnapshotStore_$eq, org$apache$pekko$persistence$snapshot$SnapshotStore$$breaker, org$apache$pekko$persistence$snapshot$SnapshotStore$$extension, org$apache$pekko$persistence$snapshot$SnapshotStore$$publish, postRestart, postStop, preRestart, receive, receivePluginInternal, receiveSnapshotStore, saveAsync, self, sender, supervisorStrategy, unhandled
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.apache.pekko.persistence.snapshot.SnapshotStore
org$apache$pekko$persistence$snapshot$SnapshotStore$$senderPersistentActor, org$apache$pekko$persistence$snapshot$SnapshotStore$$tryReceivePluginInternal
-
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
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
preStart
in interfaceorg.apache.pekko.actor.Actor
- Overrides:
preStart
in classorg.apache.pekko.persistence.snapshot.japi.SnapshotStore
- Throws:
Exception
-
doLoadAsync
public scala.concurrent.Future<Optional<org.apache.pekko.persistence.SelectedSnapshot>> doLoadAsync(String persistenceId, org.apache.pekko.persistence.SnapshotSelectionCriteria criteria) Deprecated, for removal: This API element is subject to removal in a future version. -
doSaveAsync
public scala.concurrent.Future<Void> doSaveAsync(org.apache.pekko.persistence.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(org.apache.pekko.persistence.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, org.apache.pekko.persistence.SnapshotSelectionCriteria criteria) Deprecated, for removal: This API element is subject to removal in a future version.
-