Package org.apache.pekko.persistence.fsm
package org.apache.pekko.persistence.fsm
-
ClassDescriptionDeprecated.Use EventSourcedBehavior.AbstractPersistentFSMBase<S,
D, E> Deprecated.Use EventSourcedBehavior.Deprecated.Use EventSourcedBehavior.Deprecated.Use EventSourcedBehavior.LoggingPersistentFSM<S,D, E> Deprecated.Use EventSourcedBehavior.Deprecated.Use EventSourcedBehavior.This extractor is just convenience for matching a (S, S) pair, including a reminder what the new state is.Message type which is sent directly to the subscribed actor inpekko.actor.FSM.SubscribeTransitionCallBackbefore sending anypekko.actor.FSM.Transitionmessages.All messages sent to thepekko.actor.FSMwill be wrapped inside anEvent, which allows pattern matching to extract both state and data.Signifies that thepekko.actor.FSMis shutting itself down because of an error, e.g.INTERNAL APIINTERNAL APIFSMState base trait, makes possible for simple default serialization by conversion to StringLog Entry of thepekko.actor.LoggingFSM, can be obtained by callinggetLog.Default reason if callingstop().A partial function value which does not match anything and can be used to “reset”whenUnhandledandonTerminationhandlers.Base persistent event classFSM state and data snapshotReason why thispekko.actor.FSMis shutting down.Reason given when someone was callingsystem.stop(fsm)from outside; also applies toStopsupervision directive.INTERNAL APIPersistentFSM.State<S,D, E> This captures all of the managed state of thepekko.actor.FSM: the state name, the state data, possibly custom timeout, stop reason, replies accumulated while processing the last message, possibly domain event and handler to be executed after FSM moves to the new state (also triggered when staying in the same state)Persisted on state change Not deprecated as used for users migrating from PersistentFSM to EventSourcedBehaviorThis case object is received in case of a state timeout.Case class representing the state of thepekko.actor.FSMwhithin theonTerminationblock.Send this to anpekko.actor.FSMto request first thePersistentFSM.CurrentStateand then a series ofPersistentFSM.Transitionupdates.INTERNAL APIINTERNAL APIINTERNAL APIMessage type which is used to communicate transitions between states to all subscribed listeners (usepekko.actor.FSM.SubscribeTransitionCallBack).Unsubscribe frompekko.actor.FSM.Transitionnotifications which was effected by sending the correspondingpekko.actor.FSM.SubscribeTransitionCallBack.Deprecated.Use EventSourcedBehavior.PersistentFSMBase<S,D, E> Deprecated.Use EventSourcedBehavior.SnapshotAfter Extension Id and factory for creating SnapshotAfter extension