object Sharding
- Alphabetic
- By Inheritance
- Sharding
- 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()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @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
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- def start[Msg, State](name: String, onMessage: (Msg) => ZIO[Entity[State], Nothing, Unit], numberOfShards: Int = 100, askTimeout: FiniteDuration = 10.seconds): ZIO[Has[ActorSystem], Throwable, Sharding[Msg]]
Starts cluster sharding on this node for a given entity type.
Starts cluster sharding on this node for a given entity type.
- name
the name of the entity type
- onMessage
the behavior of the entity when it receives a message
- numberOfShards
a fixed number of shards
- askTimeout
a finite duration specifying how long an ask is allowed to wait for an entity to respond
- returns
a Sharding object that can be used to send messages to sharded entities
- def startProxy[Msg](name: String, role: Option[String], numberOfShards: Int = 100, askTimeout: FiniteDuration = 10.seconds): ZIO[Has[ActorSystem], Throwable, Sharding[Msg]]
Starts cluster sharding in proxy mode for a given entity type.
Starts cluster sharding in proxy mode for a given entity type.
- name
the name of the entity type
- role
an optional role to specify that this entity type is located on cluster nodes with a specific role
- numberOfShards
a fixed number of shards
- askTimeout
a finite duration specifying how long an ask is allowed to wait for an entity to respond
- returns
a Sharding object that can be used to send messages to sharded entities on other nodes
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- 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()