Package org.apache.pekko.persistence.fsm
Class AbstractPersistentFSM<S extends PersistentFSM.FSMState,D,E>
java.lang.Object
org.apache.pekko.persistence.fsm.AbstractPersistentFSMBase<S,D,E>
org.apache.pekko.persistence.fsm.AbstractPersistentFSM<S,D,E>
- All Implemented Interfaces:
Actor,ActorLogging,Stash,StashFactory,StashSupport,UnrestrictedStash,RequiresMessageQueue<DequeBasedMessageQueueSemantics>,Eventsourced,PersistentFSM<S,,D, E> PersistentFSMBase<S,,D, E> PersistenceIdentity,PersistenceRecovery,PersistenceStash,PersistentActor,Snapshotter,Listeners
- Direct Known Subclasses:
AbstractPersistentLoggingFSM
public abstract class AbstractPersistentFSM<S extends PersistentFSM.FSMState,D,E>
extends AbstractPersistentFSMBase<S,D,E>
implements PersistentFSM<S,D,E>
Deprecated.
Use EventSourcedBehavior. Since Akka 2.6.0.
Java API: compatible with lambda expressions
Persistent Finite State Machine actor abstract base class.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.pekko.actor.Actor
Actor.emptyBehavior$, Actor.ignoringBehavior$Nested classes/interfaces inherited from interface org.apache.pekko.persistence.Eventsourced
Eventsourced.AsyncHandlerInvocation, Eventsourced.AsyncHandlerInvocation$, Eventsourced.PendingHandlerInvocation, Eventsourced.RecoveryTick, Eventsourced.RecoveryTick$, Eventsourced.StashingHandlerInvocation, Eventsourced.StashingHandlerInvocation$Nested classes/interfaces inherited from interface org.apache.pekko.persistence.fsm.PersistentFSM
PersistentFSM.$minus$greater$, PersistentFSM.CurrentState<S>, PersistentFSM.CurrentState$, PersistentFSM.Event<D>, PersistentFSM.Event$, PersistentFSM.Failure, PersistentFSM.Failure$, PersistentFSM.FixedDelayMode$, PersistentFSM.FixedRateMode$, PersistentFSM.FSMState, PersistentFSM.LogEntry<S,D>, PersistentFSM.LogEntry$, PersistentFSM.Normal$, PersistentFSM.NullFunction$, PersistentFSM.PersistentFsmEvent, PersistentFSM.PersistentFSMSnapshot<D>, PersistentFSM.PersistentFSMSnapshot$, PersistentFSM.Reason, PersistentFSM.Shutdown$, PersistentFSM.SingleMode$, PersistentFSM.State<S, D, E>, PersistentFSM.State$, PersistentFSM.StateChangeEvent, PersistentFSM.StateChangeEvent$, PersistentFSM.StateTimeout$, PersistentFSM.StopEvent<S, D>, PersistentFSM.StopEvent$, PersistentFSM.SubscribeTransitionCallBack, PersistentFSM.SubscribeTransitionCallBack$, PersistentFSM.TimeoutMarker, PersistentFSM.TimeoutMarker$, PersistentFSM.Timer, PersistentFSM.Timer$, PersistentFSM.TimerMode, PersistentFSM.Transition<S>, PersistentFSM.Transition$, PersistentFSM.UnsubscribeTransitionCallBack, PersistentFSM.UnsubscribeTransitionCallBack$ Nested classes/interfaces inherited from interface org.apache.pekko.persistence.fsm.PersistentFSMBase
PersistentFSMBase.TransformHelper -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionDeprecated.Domain event'sClassUsed for identifying domain events during recoveryfinal scala.reflect.ClassTag<E>Deprecated.Adapter from JavaClasstoClassTagscala.reflect.ClassTag<E>Deprecated.Domain event'sClassTagUsed for identifying domain events during recoveryfinal scala.Function1<D,scala.runtime.BoxedUnit> Deprecated.Adapter from Java 8 Functional Interface to Scala Functionprotected ActorRefjournal()Deprecated.protected voidDeprecated.protected voidorg$apache$pekko$persistence$fsm$PersistentFSM$_setter_$domainEventTag_$eq(scala.reflect.ClassTag<E> x$1) Deprecated.Domain event'sClassTagUsed for identifying domain events during recoveryvoidpostStop()Deprecated.User overridable callback.scala.PartialFunction<Object,scala.runtime.BoxedUnit> receive()Deprecated.Scala API: This defines the initial actor behavior, it must return a partial function with the actor logic.protected ActorRefDeprecated.Snapshot store plugin actor.Deprecated.Map from state identifier to state instanceMethods inherited from class org.apache.pekko.persistence.fsm.AbstractPersistentFSMBase
$minus$greater, context, Event, getContext, getSelf, getSender, goTo, listeners, matchAnyEvent, matchData, matchData, matchEvent, matchEvent, matchEvent, matchEvent, matchEvent, matchEvent, matchEvent, matchEventEquals, matchEventEquals, matchState, matchState, matchStop, matchStop, matchStop, Normal, NullFunction, onTermination, onTransition, onTransition, org$apache$pekko$actor$Actor$_setter_$context_$eq, org$apache$pekko$actor$Actor$_setter_$self_$eq, org$apache$pekko$persistence$fsm$PersistentFSMBase$_setter_$Event_$eq, org$apache$pekko$persistence$fsm$PersistentFSMBase$_setter_$StateTimeout_$eq, org$apache$pekko$persistence$fsm$PersistentFSMBase$_setter_$StopEvent_$eq, org$apache$pekko$routing$Listeners$_setter_$listeners_$eq, self, setTimer, Shutdown, startSingleTimer, startTimerAtFixedRate, startTimerWithFixedDelay, startWith, startWith, StateTimeout, StopEvent, when, when, when, whenUnhandledMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.pekko.actor.Actor
context, org$apache$pekko$actor$Actor$_setter_$context_$eq, org$apache$pekko$actor$Actor$_setter_$self_$eq, postRestart, preStart, self, sender, supervisorStrategyMethods inherited from interface org.apache.pekko.actor.ActorLogging
_log_$eq, logMethods inherited from interface org.apache.pekko.persistence.Eventsourced
_lastSequenceNr_$eq, aroundPostRestart, aroundPostStop, aroundPreRestart, aroundPreStart, aroundReceive, batchAtomicWrite, changeState, currentState_$eq, deleteMessages, eventBatch_$eq, flushBatch, flushJournalBatch, internalDefer, internalDeferAsync, internalDeleteMessagesBeforeSnapshot, internalPersist, internalPersistAll, internalPersistAllAsync, internalPersistAsync, journalBatch_$eq, lastSequenceNr, log, nextSequenceNr, onPersistFailure, onPersistRejected, onRecoveryFailure, onReplaySuccess, peekApplyHandler, pendingStashingPersistInvocations_$eq, recovering, recoveryFinished, recoveryRunning, recoveryStarted, requestRecoveryPermit, sendBatchedEventsToJournal, sequenceNr_$eq, setLastSequenceNr, snapshotSequenceNr, snapshotterId, startRecovery, stash, stashInternally, super$aroundPostRestart, super$aroundPostStop, super$aroundPreRestart, super$aroundPreStart, super$aroundReceive, super$stash, super$unhandled, unhandled, unstashAll, unstashInternally, updateLastSequenceNr, waitingRecoveryPermit, writeEventFailed, writeEventRejected, writeEventSucceeded, writeInProgress_$eqMethods inherited from interface org.apache.pekko.routing.Listeners
gossip, gossip$default$2, listenerManagement, listeners, org$apache$pekko$routing$Listeners$_setter_$listeners_$eqMethods inherited from interface org.apache.pekko.persistence.PersistenceIdentity
journalPluginId, persistenceId, snapshotPluginIdMethods inherited from interface org.apache.pekko.persistence.PersistenceRecovery
recoveryMethods inherited from interface org.apache.pekko.persistence.PersistenceStash
internalStashOverflowStrategyMethods inherited from interface org.apache.pekko.persistence.PersistentActor
defer, deferAsync, persist, persistAll, persistAllAsync, persistAsyncMethods inherited from interface org.apache.pekko.persistence.fsm.PersistentFSM
applyEvent, applyState, currentStateTimeout_$eq, onRecoveryCompleted, receiveCommand, receiveRecover, saveStateSnapshot, super$applyStateMethods inherited from interface org.apache.pekko.persistence.fsm.PersistentFSMBase
$minus$greater, cancelTimer, currentState_$eq, debugEvent, Event, generation_$eq, handleEvent_$eq, handleTransition, initialize, isStateTimerActive, isTimerActive, logTermination, makeTransition, nextState_$eq, nextStateData, onTermination, onTransition, org$apache$pekko$persistence$fsm$PersistentFSMBase$_setter_$Event_$eq, org$apache$pekko$persistence$fsm$PersistentFSMBase$_setter_$StateTimeout_$eq, org$apache$pekko$persistence$fsm$PersistentFSMBase$_setter_$StopEvent_$eq, processEvent, processMsg, register, setStateTimeout, setTimer, setTimer$default$4, startSingleTimer, startTimer, startTimerAtFixedRate, startTimerWithFixedDelay, startWith, startWith$default$3, stateData, stateName, stateNames, StateTimeout, stay, stop, stop, stop, StopEvent, super$postStop, terminate, terminateEvent_$eq, timeoutFuture_$eq, total2pf, transform, transitionEvent_$eq, when, when$default$2, whenUnhandledMethods inherited from interface org.apache.pekko.persistence.Snapshotter
deleteSnapshot, deleteSnapshots, loadSnapshot, saveSnapshotMethods inherited from interface org.apache.pekko.actor.StashFactory
createStashMethods inherited from interface org.apache.pekko.actor.StashSupport
actorCell, clearStash, context, enqueueFirst, prepend, self, theStash_$eq, unstash, unstashAllMethods inherited from interface org.apache.pekko.actor.UnrestrictedStash
preRestart, super$postStop, super$preRestart
-
Constructor Details
-
AbstractPersistentFSM
public AbstractPersistentFSM()Deprecated.
-
-
Method Details
-
domainEventClass
Deprecated.Domain event'sClassUsed for identifying domain events during recovery -
domainEventClassTag
Deprecated.Adapter from JavaClasstoClassTag- Specified by:
domainEventClassTagin interfacePersistentFSM<S extends PersistentFSM.FSMState,D, E> - Returns:
- domain event
ClassTag
-
domainEventTag
Deprecated.Description copied from interface:PersistentFSMDomain event'sClassTagUsed for identifying domain events during recovery- Specified by:
domainEventTagin interfacePersistentFSM<S extends PersistentFSM.FSMState,D, E>
-
exec
Deprecated.Adapter from Java 8 Functional Interface to Scala Function- Parameters:
action- - Java 8 lambda expression defining the action- Returns:
- action represented as a Scala Function
-
journal
Deprecated.- Specified by:
journalin interfaceEventsourced
-
org$apache$pekko$actor$StashSupport$_setter_$mailbox_$eq
protected void org$apache$pekko$actor$StashSupport$_setter_$mailbox_$eq(DequeBasedMessageQueueSemantics x$1) Deprecated.- Specified by:
org$apache$pekko$actor$StashSupport$_setter_$mailbox_$eqin interfaceStashSupport
-
org$apache$pekko$persistence$fsm$PersistentFSM$_setter_$domainEventTag_$eq
protected void org$apache$pekko$persistence$fsm$PersistentFSM$_setter_$domainEventTag_$eq(scala.reflect.ClassTag<E> x$1) Deprecated.Description copied from interface:PersistentFSMDomain event'sClassTagUsed for identifying domain events during recovery- Specified by:
org$apache$pekko$persistence$fsm$PersistentFSM$_setter_$domainEventTag_$eqin interfacePersistentFSM<S extends PersistentFSM.FSMState,D, E>
-
postStop
Deprecated.Description copied from interface:ActorUser overridable callback. Is called asynchronously after 'actor.stop()' is invoked. Empty default implementation.- Specified by:
postStopin interfaceActor- Specified by:
postStopin interfacePersistentFSMBase<S extends PersistentFSM.FSMState,D, E> - Specified by:
postStopin interfaceUnrestrictedStash- Throws:
Exception
-
receive
Deprecated.Description copied from interface:ActorScala API: This defines the initial actor behavior, it must return a partial function with the actor logic.- Specified by:
receivein interfaceActor- Specified by:
receivein interfacePersistentActor- Specified by:
receivein interfacePersistentFSMBase<S extends PersistentFSM.FSMState,D, E>
-
snapshotStore
Deprecated.Description copied from interface:SnapshotterSnapshot store plugin actor.- Specified by:
snapshotStorein interfaceEventsourced- Specified by:
snapshotStorein interfaceSnapshotter
-
statesMap
Deprecated.Description copied from interface:PersistentFSMMap from state identifier to state instance- Specified by:
statesMapin interfacePersistentFSM<S extends PersistentFSM.FSMState,D, E>
-