Class Recovery

    • Constructor Detail

      • Recovery

        public Recovery()
    • Method Detail

      • enabled

        public static Recovery enabled()
        Snapshots and events are recovered
      • disabled

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

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

      • replayOnlyLast

        public static Recovery replayOnlyLast()
        Don't load snapshot and replay only last event.
      • asScala

        public abstract Recovery asScala()