Class Recovery$


  • public class Recovery$
    extends java.lang.Object
    Strategy for recovery of snapshots and events.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static Recovery$ MODULE$
      Static reference to the singleton instance of this Scala object.
    • Constructor Summary

      Constructors 
      Constructor Description
      Recovery$()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      Recovery disabled()
      Neither snapshots nor events are recovered
      akka.persistence.typed.internal.RecoveryWithSnapshotSelectionCriteria withSnapshotSelectionCriteria​(SnapshotSelectionCriteria snapshotSelectionCriteria)
      Changes the snapshot selection criteria used for the recovery.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • MODULE$

        public static final Recovery$ MODULE$
        Static reference to the singleton instance of this Scala object.
    • Constructor Detail

      • Recovery$

        public Recovery$()
    • Method Detail

      • disabled

        public Recovery disabled()
        Neither snapshots nor events are recovered
      • withSnapshotSelectionCriteria

        public akka.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.