Class Recovery$
java.lang.Object
org.apache.pekko.persistence.typed.javadsl.Recovery$
Strategy for recovery of snapshots and events.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondisabled()Neither snapshots nor events are recoveredorg.apache.pekko.persistence.typed.internal.RecoveryWithSnapshotSelectionCriteriawithSnapshotSelectionCriteria(SnapshotSelectionCriteria snapshotSelectionCriteria) Changes the snapshot selection criteria used for the recovery.
-
Field Details
-
MODULE$
Static reference to the singleton instance of this Scala object.
-
-
Constructor Details
-
Recovery$
public Recovery$()
-
-
Method Details
-
disabled
Neither snapshots nor events are recovered -
withSnapshotSelectionCriteria
public org.apache.pekko.persistence.typed.internal.RecoveryWithSnapshotSelectionCriteria withSnapshotSelectionCriteria(SnapshotSelectionCriteria snapshotSelectionCriteria) Changes the snapshot selection criteria used for the recovery.By default the most recent snapshot is used, and the remaining state updates are recovered by replaying events from the sequence number up until which the snapshot reached.
You may configure the behavior to skip replaying snapshots completely, in which case the recovery will be performed by replaying all events -- which may take a long time.
-