object ReplicationSettings
- Alphabetic
- By Inheritance
- ReplicationSettings
- 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]) @IntrinsicCandidate() @native()
- def create[Command](commandClass: Class[Command], entityTypeName: String, replicationProjectionProvider: ReplicationProjectionProvider, system: ActorSystem[_]): ReplicationSettings[Command]
Create settings from config, the system config is expected to contain a block with the entity type key name.
Create settings from config, the system config is expected to contain a block with the entity type key name. Each replica is further expected to have a top level config entry 'akka.grpc.client.[replica-id]' with Akka gRPC client config for reaching the replica from the other replicas.
- def create[Command](commandClass: Class[Command], entityTypeName: String, selfReplicaId: ReplicaId, eventProducerSettings: EventProducerSettings, replicas: Set[Replica], entityEventReplicationTimeout: Duration, parallelUpdates: Int, replicationProjectionProvider: ReplicationProjectionProvider): ReplicationSettings[Command]
Settings for replicating an entity over gRPC
Settings for replicating an entity over gRPC
Note: The replica ids and the entity type name is used as id in offset tracking, changing those will replay events from the start.
- entityTypeName
A name for the type of replicated entity
- selfReplicaId
The replica id of this node, must not be present among 'otherReplicas'
- eventProducerSettings
Event producer settings for the event stream published by this replica
- replicas
One entry for each replica to replicate into this replica (if it contains self replica id that is filtered out) to create the
otherReplicas
set.- entityEventReplicationTimeout
A timeout for the replication event, needs to be large enough for the time of sending a message across sharding and persisting it in the local replica of an entity. Hitting this timeout means the entire replication stream will back off and restart.
- parallelUpdates
Maximum number of parallel updates sent over sharding to the destination entities
- replicationProjectionProvider
Factory for the projection to use on the consuming side
- 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
- @IntrinsicCandidate() @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @IntrinsicCandidate() @native()
- 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
- @IntrinsicCandidate() @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @IntrinsicCandidate() @native()
- 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])