public class ReplicatedEntityActor<C,E,S>
extends java.lang.Object
implements akka.actor.Timers, akka.persistence.PersistentActor
PersistentActor that runs a ReplicatedEntity.| Modifier and Type | Class and Description |
|---|---|
static interface |
ReplicatedEntityActor.Protocol |
static class |
ReplicatedEntityActor.ReplicatedEventAck$ |
static class |
ReplicatedEntityActor.ReplicatedEventMetaData |
static class |
ReplicatedEntityActor.ReplicatedEventMetaData$ |
static class |
ReplicatedEntityActor.SpeculativeReplicatedEventImpl<Event> |
static class |
ReplicatedEntityActor.SpeculativeReplicatedEventImpl$ |
static class |
ReplicatedEntityActor.SpeculativeReplicatedEventLightImpl
Used when sending back to the originDc.
|
static class |
ReplicatedEntityActor.SpeculativeReplicatedEventLightImpl$ |
akka.persistence.Eventsourced.AsyncHandlerInvocation, akka.persistence.Eventsourced.AsyncHandlerInvocation$, akka.persistence.Eventsourced.PendingHandlerInvocation, akka.persistence.Eventsourced.ProcessingState, akka.persistence.Eventsourced.RecoveryTick, akka.persistence.Eventsourced.RecoveryTick$, akka.persistence.Eventsourced.StashingHandlerInvocation, akka.persistence.Eventsourced.StashingHandlerInvocation$, akka.persistence.Eventsourced.State| Constructor and Description |
|---|
ReplicatedEntityActor(java.lang.Class<C> commandClass,
java.lang.String persistenceIdPrefix,
scala.Option<java.lang.String> id,
InternalReplicatedEntity<C,E,S> entity,
PersistenceMultiDcSettings settings) |
| Modifier and Type | Method and Description |
|---|---|
void |
applyEventTrigger(S s,
ReplicatedEvent<E> re) |
S |
applyReplicatedEvent(S s,
ReplicatedEvent<E> re)
Apply an event that was replicated from another DC to the given state.
|
S |
applySelfEvent(S s,
ReplicatedEvent<E> re)
Apply an event that was persisted by this data center to the given state.
|
protected void |
aroundReceive(scala.PartialFunction<java.lang.Object,scala.runtime.BoxedUnit> receive,
java.lang.Object msg)
INTERNAL API
|
<EE> ReplicatedEvent<EE> |
createReplicatedEvent(EE event,
long sequenceNr) |
static char |
EntityIdSeparator() |
java.lang.String |
journalPluginId() |
void |
onSnapshotReceived(ReplicatedEntitySnapshot<S> snapshot) |
<A> void |
persist(A event,
scala.Function1<A,scala.runtime.BoxedUnit> handler) |
<A> void |
persistAll(scala.collection.immutable.Seq<A> events,
scala.Function1<A,scala.runtime.BoxedUnit> handler) |
<A> void |
persistAllAsync(scala.collection.immutable.Seq<A> events,
scala.Function1<A,scala.runtime.BoxedUnit> handler) |
<A> void |
persistAsync(A event,
scala.Function1<A,scala.runtime.BoxedUnit> handler) |
java.lang.String |
persistenceId() |
void |
postStop() |
static <C,E,S> akka.actor.Props |
props(java.lang.Class<C> commandClass,
java.lang.String persistenceIdPrefix,
scala.Option<java.lang.String> entityId,
scala.Function0<InternalReplicatedEntity<C,E,S>> entityFactory,
PersistenceMultiDcSettings settings) |
scala.PartialFunction<java.lang.Object,scala.runtime.BoxedUnit> |
receiveCommand() |
scala.PartialFunction<java.lang.Object,scala.runtime.BoxedUnit> |
receiveRecover() |
void |
saveSnapshotWithReplicationState() |
akka.actor.SupervisorStrategy |
supervisorStrategy() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitakka$actor$Timers$_setter_$akka$actor$Timers$$_timers_$eq, akka$actor$Timers$$_timers, aroundPostStop, aroundPreRestart, timersakka$persistence$Eventsourced$_setter_$akka$persistence$Eventsourced$$extension_$eq, akka$persistence$Eventsourced$_setter_$akka$persistence$Eventsourced$$instanceId_$eq, akka$persistence$Eventsourced$_setter_$akka$persistence$Eventsourced$$internalStash_$eq, akka$persistence$Eventsourced$_setter_$akka$persistence$Eventsourced$$maxMessageBatchSize_$eq, akka$persistence$Eventsourced$_setter_$akka$persistence$Eventsourced$$pendingInvocations_$eq, akka$persistence$Eventsourced$_setter_$akka$persistence$Eventsourced$$persistingEvents_$eq, akka$persistence$Eventsourced$_setter_$akka$persistence$Eventsourced$$processingCommands_$eq, akka$persistence$Eventsourced$_setter_$akka$persistence$Eventsourced$$unstashFilterPredicate_$eq, akka$persistence$Eventsourced$_setter_$akka$persistence$Eventsourced$$writerUuid_$eq, akka$persistence$Eventsourced$$_lastSequenceNr_$eq, akka$persistence$Eventsourced$$_lastSequenceNr, akka$persistence$Eventsourced$$currentState_$eq, akka$persistence$Eventsourced$$currentState, akka$persistence$Eventsourced$$eventBatch_$eq, akka$persistence$Eventsourced$$eventBatch, akka$persistence$Eventsourced$$extension, akka$persistence$Eventsourced$$instanceId, akka$persistence$Eventsourced$$internalStash, akka$persistence$Eventsourced$$journalBatch_$eq, akka$persistence$Eventsourced$$journalBatch, akka$persistence$Eventsourced$$maxMessageBatchSize, akka$persistence$Eventsourced$$pendingInvocations, akka$persistence$Eventsourced$$pendingStashingPersistInvocations_$eq, akka$persistence$Eventsourced$$pendingStashingPersistInvocations, akka$persistence$Eventsourced$$persistingEvents, akka$persistence$Eventsourced$$processingCommands, akka$persistence$Eventsourced$$sequenceNr_$eq, akka$persistence$Eventsourced$$sequenceNr, akka$persistence$Eventsourced$$unstashFilterPredicate, akka$persistence$Eventsourced$$writeInProgress_$eq, akka$persistence$Eventsourced$$writeInProgress, akka$persistence$Eventsourced$$writerUuid, aroundPostRestart, aroundPreStart, deleteMessages, internalDefer, internalDeferAsync, internalDeleteMessagesBeforeSnapshot, internalPersist, internalPersistAll, internalPersistAllAsync, internalPersistAsync, journal, lastSequenceNr, onPersistFailure, onPersistRejected, onRecoveryFailure, onReplaySuccess, recoveryFinished, recoveryRunning, snapshotSequenceNr, snapshotStore, snapshotterId, stash, unhandled, unstashAlldeleteSnapshot, deleteSnapshots, loadSnapshot, saveSnapshotakka$actor$Actor$_setter_$context_$eq, akka$actor$Actor$_setter_$self_$eq, context, postRestart, preStart, self, senderakka$actor$StashSupport$_setter_$akka$actor$StashSupport$$capacity_$eq, akka$actor$StashSupport$_setter_$mailbox_$eq, akka$actor$StashSupport$$capacity, akka$actor$StashSupport$$theStash_$eq, akka$actor$StashSupport$$theStash, clearStash, context, mailbox, prepend, self, unstash, unstashAllpublic ReplicatedEntityActor(java.lang.Class<C> commandClass, java.lang.String persistenceIdPrefix, scala.Option<java.lang.String> id, InternalReplicatedEntity<C,E,S> entity, PersistenceMultiDcSettings settings)
public static char EntityIdSeparator()
public static <C,E,S> akka.actor.Props props(java.lang.Class<C> commandClass,
java.lang.String persistenceIdPrefix,
scala.Option<java.lang.String> entityId,
scala.Function0<InternalReplicatedEntity<C,E,S>> entityFactory,
PersistenceMultiDcSettings settings)
public java.lang.String persistenceId()
persistenceId in interface akka.persistence.PersistenceIdentitypublic java.lang.String journalPluginId()
journalPluginId in interface akka.persistence.PersistenceIdentitypublic akka.actor.SupervisorStrategy supervisorStrategy()
supervisorStrategy in interface akka.actor.Actorpublic void postStop()
postStop in interface akka.actor.ActorpostStop in interface akka.actor.UnrestrictedStashprotected void aroundReceive(scala.PartialFunction<java.lang.Object,scala.runtime.BoxedUnit> receive,
java.lang.Object msg)
aroundReceive in interface akka.actor.ActoraroundReceive in interface akka.actor.TimersaroundReceive in interface akka.persistence.Eventsourcedpublic scala.PartialFunction<java.lang.Object,scala.runtime.BoxedUnit> receiveRecover()
receiveRecover in interface akka.persistence.Eventsourcedpublic <EE> ReplicatedEvent<EE> createReplicatedEvent(EE event, long sequenceNr)
public S applyReplicatedEvent(S s, ReplicatedEvent<E> re)
s - (undocumented)re - (undocumented)public S applySelfEvent(S s, ReplicatedEvent<E> re)
s - (undocumented)re - (undocumented)public void applyEventTrigger(S s, ReplicatedEvent<E> re)
public scala.PartialFunction<java.lang.Object,scala.runtime.BoxedUnit> receiveCommand()
receiveCommand in interface akka.persistence.Eventsourcedpublic <A> void persist(A event,
scala.Function1<A,scala.runtime.BoxedUnit> handler)
persist in interface akka.persistence.PersistentActorpublic <A> void persistAll(scala.collection.immutable.Seq<A> events,
scala.Function1<A,scala.runtime.BoxedUnit> handler)
persistAll in interface akka.persistence.PersistentActorpublic <A> void persistAsync(A event,
scala.Function1<A,scala.runtime.BoxedUnit> handler)
persistAsync in interface akka.persistence.PersistentActorpublic <A> void persistAllAsync(scala.collection.immutable.Seq<A> events,
scala.Function1<A,scala.runtime.BoxedUnit> handler)
persistAllAsync in interface akka.persistence.PersistentActorpublic void saveSnapshotWithReplicationState()
public void onSnapshotReceived(ReplicatedEntitySnapshot<S> snapshot)