Class Running$
Conceptually fourth (of four) -- also known as 'final' or 'ultimate' -- form of EventSourcedBehavior.
In this phase recovery has completed successfully and we continue handling incoming commands, as well as persisting new events as dictated by the user handlers.
This behavior operates in three phases (also behaviors): - HandlingCommands - where the command handler is invoked for incoming commands - PersistingEvents - where incoming commands are stashed until persistence completes - storingSnapshot - where incoming commands are stashed until snapshot storage completes
This is implemented as such to avoid creating many EventSourced Running instances, which perform the Persistence extension lookup on creation and similar things (config lookup)
See previous ReplayingEvents.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionformatTimestamp(long time) <C,E, S> org.apache.pekko.persistence.typed.internal.Running.RunningState<S, C> startReplicationStream(org.apache.pekko.persistence.typed.internal.BehaviorSetup<C, E, S> setup, org.apache.pekko.persistence.typed.internal.Running.RunningState<S, C> state, org.apache.pekko.persistence.typed.internal.ReplicationSetup replicationSetup)
-
Field Details
-
MODULE$
Static reference to the singleton instance of this Scala object.
-
-
Constructor Details
-
Running$
public Running$()
-
-
Method Details
-
startReplicationStream
public <C,E, org.apache.pekko.persistence.typed.internal.Running.RunningState<S,S> C> startReplicationStream(org.apache.pekko.persistence.typed.internal.BehaviorSetup<C, E, S> setup, org.apache.pekko.persistence.typed.internal.Running.RunningState<S, C> state, org.apache.pekko.persistence.typed.internal.ReplicationSetup replicationSetup) -
formatTimestamp
-