Interface PersistenceRecovery

All Known Subinterfaces:
AbstractPersistentActorLike, AtLeastOnceDelivery, AtLeastOnceDeliveryLike, Eventsourced, PersistentActor, PersistentFSM<S,D,E>
All Known Implementing Classes:
AbstractPersistentActor, AbstractPersistentActorWithAtLeastOnceDelivery, AbstractPersistentActorWithTimers, AbstractPersistentFSM, AbstractPersistentLoggingFSM, JournalPerfSpec.BenchActor, PersistentShardCoordinator

public interface PersistenceRecovery
  • Method Summary

    Modifier and Type
    Method
    Description
    Called when the persistent actor is started for the first time.
  • Method Details

    • recovery

      Recovery recovery()
      Called when the persistent actor is started for the first time. The returned pekko.persistence.Recovery object defines how the Actor will recover its persistent state before handling the first incoming message.

      To skip recovery completely return Recovery.none.