Package org.apache.pekko.persistence
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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Recovery
recovery()
Called when the persistent actor is started for the first time.
-
-
-
Method Detail
-
recovery
Recovery recovery()
Called when the persistent actor is started for the first time. The returnedpekko.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
.
-
-