object ReplicatedEventSourcing
- Alphabetic
- By Inheritance
- ReplicatedEventSourcing
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
- def commonJournalConfig[Command, Event, State](replicationId: ReplicationId, allReplicaIds: Set[ReplicaId], queryPluginId: String, behaviorFactory: Function[ReplicationContext, EventSourcedBehavior[Command, Event, State]]): EventSourcedBehavior[Command, Event, State]
Initialize a replicated event sourced behavior where all entity replicas are share the same journal configuration.
Initialize a replicated event sourced behavior where all entity replicas are share the same journal configuration. This is typical if there is a shared database and no replica specific configuratin is required.
Events from each replica for the same entityId will be replicated to every copy. Care must be taken to handle events in any order as events can happen concurrently at different replicas.
Using an replicated event sourced behavior means there is no longer the single writer guarantee.
A different journal plugin id can be configured using withJournalPluginId after creation. Different databases can be used for each replica. The events from other replicas are read using PersistentQuery.
- queryPluginId
A single query plugin used to read the events from other replicas. Must be the query side of your configured journal plugin.
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- def perReplicaJournalConfig[Command, Event, State](replicationId: ReplicationId, allReplicasAndQueryPlugins: Map[ReplicaId, String], eventSourcedBehaviorFactory: Function[ReplicationContext, EventSourcedBehavior[Command, Event, State]]): EventSourcedBehavior[Command, Event, State]
Initialize a replicated event sourced behavior where each journal has different journal configuration e.g.
Initialize a replicated event sourced behavior where each journal has different journal configuration e.g. each replica uses a different database or requires different database configuration for a shared database.
Events from each replica for the same entityId will be replicated to every copy. Care must be taken to handle events in any order as events can happen concurrently at different replicas.
Using an replicated event sourced behavior means there is no longer the single writer guarantee.
The journal plugin id for the entity itself can be configured using withJournalPluginId after creation. A query side identifier is passed per replica allowing for separate database/journal configuration per replica. The events from other replicas are read using PersistentQuery.
- allReplicasAndQueryPlugins
All replica ids and a query plugin per replica id. These need to be known to receive events from all replicas and configured with the query plugin for the journal that each replica uses.
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])