Class ReplicatedEventSourcedBehavior<Command,Event,State>
java.lang.Object
org.apache.pekko.actor.typed.Behavior<T>
org.apache.pekko.actor.typed.internal.BehaviorImpl.DeferredBehavior<Command>
org.apache.pekko.persistence.typed.javadsl.EventSourcedBehavior<Command,Event,State>
org.apache.pekko.persistence.typed.javadsl.ReplicatedEventSourcedBehavior<Command,Event,State>
public abstract class ReplicatedEventSourcedBehavior<Command,Event,State>
extends EventSourcedBehavior<Command,Event,State>
Base class for replicated event sourced behaviors.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.pekko.actor.typed.Behavior
Behavior.BehaviorDecorators<Inner>, Behavior.BehaviorDecorators$ -
Constructor Summary
ConstructorsConstructorDescriptionReplicatedEventSourcedBehavior(ReplicationContext replicationContext) ReplicatedEventSourcedBehavior(ReplicationContext replicationContext, Optional<BackoffSupervisorStrategy> onPersistFailure) -
Method Summary
Modifier and TypeMethodDescriptionapply(TypedActorContext<Command> context) INTERNAL API: DeferredBehavior init, not for user extensionprotected ReplicationContextbooleanOverride and return false to disable events being published to the system event stream aspekko.persistence.typed.PublishedEventafter they have been persisted.Methods inherited from class org.apache.pekko.persistence.typed.javadsl.EventSourcedBehavior
commandHandler, Effect, emptyState, eventAdapter, eventHandler, journalPluginConfig, journalPluginId, lastSequenceNumber, newCommandHandlerBuilder, newEventHandlerBuilder, newSignalHandlerBuilder, persistenceId, recovery, retentionCriteria, shouldSnapshot, signalHandler, snapshotAdapter, snapshotPluginConfig, snapshotPluginId, stashCapacity, tagsForMethods inherited from class org.apache.pekko.actor.typed.Behavior
BehaviorDecorators, canonicalize, existsInStack, interpretMessage, interpretSignal, isAlive, isDeferred, isUnhandled, narrow, start, validateAsInitial
-
Constructor Details
-
ReplicatedEventSourcedBehavior
public ReplicatedEventSourcedBehavior(ReplicationContext replicationContext, Optional<BackoffSupervisorStrategy> onPersistFailure) -
ReplicatedEventSourcedBehavior
-
-
Method Details
-
apply
INTERNAL API: DeferredBehavior init, not for user extension- Overrides:
applyin classEventSourcedBehavior<Command,Event, State>
-
getReplicationContext
-
withEventPublishing
public boolean withEventPublishing()Override and return false to disable events being published to the system event stream aspekko.persistence.typed.PublishedEventafter they have been persisted.
-