object ReplicatedEntityProvider
- Alphabetic
- By Inheritance
- ReplicatedEntityProvider
- 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
- def apply[M](typeName: String, allReplicaIds: Set[ReplicaId])(settingsPerReplicaFactory: (EntityTypeKey[M], ReplicaId) => ReplicatedEntity[M])(implicit arg0: ClassTag[M]): ReplicatedEntityProvider[M]
Scala API:
Scala API:
Provides full control over the ReplicatedEntity and the Entity Most use cases can use the perDataCenter and perRole
- M
The type of messages the replicated entity accepts
- typeName
The type name used in the EntityTypeKey
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @HotSpotIntrinsicCandidate() @native()
- def create[M](messageClass: Class[M], typeName: String, allReplicaIds: Set[ReplicaId], settingsPerReplicaFactory: Function2[EntityTypeKey[M], ReplicaId, ReplicatedEntity[M]]): ReplicatedEntityProvider[M]
Java API:
Java API:
Provides full control over the ReplicatedEntity and the Entity Most use cases can use the createPerDataCenter and createPerRole
- M
The type of messages the replicated entity accepts
- def createPerDataCenter[M](messageClass: Class[M], typeName: String, allReplicaIds: Set[ReplicaId], createBehavior: Function[ReplicationId, Behavior[M]]): ReplicatedEntityProvider[M]
Java API
Java API
Create a ReplicatedEntityProvider that uses the defaults for Entity when running in ClusterSharding. A replica will be run per data center.
- def createPerRole[M](messageClass: Class[M], typeName: String, allReplicaIds: Set[ReplicaId], createBehavior: Function[ReplicationId, Behavior[M]]): ReplicatedEntityProvider[M]
Java API
Java API
Create a ReplicatedEntityProvider that uses the defaults for Entity when running in ClusterSharding.
Map replicas to roles and then there will be a replica per role e.g. to match to availability zones/racks
- 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
- @HotSpotIntrinsicCandidate() @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @HotSpotIntrinsicCandidate() @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
- @HotSpotIntrinsicCandidate() @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @HotSpotIntrinsicCandidate() @native()
- def perDataCenter[M, E](typeName: String, allReplicaIds: Set[ReplicaId])(create: (ReplicationId) => Behavior[M])(implicit arg0: ClassTag[M]): ReplicatedEntityProvider[M]
Scala API
Scala API
Create a ReplicatedEntityProvider that uses the defaults for Entity when running in ClusterSharding. A replica will be run per data center.
- def perRole[M, E](typeName: String, allReplicaIds: Set[ReplicaId])(create: (ReplicationId) => Behavior[M])(implicit arg0: ClassTag[M]): ReplicatedEntityProvider[M]
Scala API
Scala API
Create a ReplicatedEntityProvider that uses the defaults for Entity when running in ClusterSharding. The replicas in allReplicaIds should be roles used by nodes. A replica for each entity will run on each role.
- 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])