Package org.apache.pekko.persistence
Class AbstractPersistentActorWithTimers
java.lang.Object
org.apache.pekko.actor.AbstractActor
org.apache.pekko.persistence.AbstractPersistentActorWithTimers
- All Implemented Interfaces:
Actor,StashFactory,StashSupport,Timers,RequiresMessageQueue<DequeBasedMessageQueueSemantics>,AbstractPersistentActorLike,Eventsourced,PersistenceIdentity,PersistenceRecovery,PersistenceStash,Snapshotter
public abstract class AbstractPersistentActorWithTimers
extends AbstractActor
implements Timers, AbstractPersistentActorLike
Java API: Combination of
AbstractPersistentActor and pekko.actor.AbstractActorWithTimers.-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.pekko.actor.AbstractActor
AbstractActor.ActorContext, AbstractActor.ReceiveNested 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$, Eventsourced.State -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidINTERNAL API.protected voidaroundPreRestart(Throwable reason, scala.Option<Object> message) INTERNAL API.protected voidaroundReceive(scala.PartialFunction<Object, scala.runtime.BoxedUnit> receive, Object msg) INTERNAL API.protected ActorRefjournal()protected voidprotected ActorRefSnapshot store plugin actor.Methods inherited from class org.apache.pekko.actor.AbstractActor
context, createReceive, emptyBehavior, getContext, getSelf, getSender, org$apache$pekko$actor$Actor$_setter_$context_$eq, org$apache$pekko$actor$Actor$_setter_$self_$eq, postRestart, postStop, preRestart, preRestart, preStart, receive, receiveBuilder, self, supervisorStrategyMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.pekko.persistence.AbstractPersistentActorLike
createReceive, createReceiveRecover, defer, deferAsync, persist, persistAll, persistAllAsync, persistAsync, receiveCommand, receiveRecoverMethods 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, postStop, preRestart, preStart, receive, self, sender, supervisorStrategyMethods inherited from interface org.apache.pekko.persistence.Eventsourced
_lastSequenceNr_$eq, aroundPostRestart, aroundPreStart, 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.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.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.Timers
actorCell, super$aroundPostStop, super$aroundPreRestart, super$aroundReceive, timers
-
Constructor Details
-
AbstractPersistentActorWithTimers
public AbstractPersistentActorWithTimers()
-
-
Method Details
-
aroundPostStop
protected void aroundPostStop()Description copied from interface:ActorINTERNAL API.Can be overridden to intercept calls to
postStop. CallspostStopby default.- Specified by:
aroundPostStopin interfaceActor- Specified by:
aroundPostStopin interfaceEventsourced- Specified by:
aroundPostStopin interfaceTimers
-
aroundPreRestart
Description copied from interface:ActorINTERNAL API.Can be overridden to intercept calls to
preRestart. CallspreRestartby default.- Specified by:
aroundPreRestartin interfaceActor- Specified by:
aroundPreRestartin interfaceEventsourced- Specified by:
aroundPreRestartin interfaceTimers
-
aroundReceive
protected void aroundReceive(scala.PartialFunction<Object, scala.runtime.BoxedUnit> receive, Object msg) Description copied from interface:ActorINTERNAL API.Can be overridden to intercept calls to this actor's current behavior.
- Specified by:
aroundReceivein interfaceActor- Specified by:
aroundReceivein interfaceEventsourced- Specified by:
aroundReceivein interfaceTimers- Parameters:
receive- current behavior.msg- current message.
-
journal
- 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) - Specified by:
org$apache$pekko$actor$StashSupport$_setter_$mailbox_$eqin interfaceStashSupport
-
snapshotStore
Description copied from interface:SnapshotterSnapshot store plugin actor.- Specified by:
snapshotStorein interfaceEventsourced- Specified by:
snapshotStorein interfaceSnapshotter
-