Attributes
Members list
Type members
Classlikes
Attributes
- Companion
- trait
- Supertypes
-
trait Sumtrait Mirrorclass Objecttrait Matchableclass Any
- Self type
Attributes
- Companion
- object
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
Value members
Concrete methods
Get an object that allows broadcasting messages to a given topic type. You can provide a custom send timeout to override the one globally defined.
Get an object that allows broadcasting messages to a given topic type. You can provide a custom send timeout to override the one globally defined.
Attributes
Get the list of pods currently registered to the Shard Manager
Get the list of pods currently registered to the Shard Manager
Attributes
Get an object that allows sending messages to a given entity type. You can provide a custom send timeout to override the one globally defined.
Get an object that allows sending messages to a given entity type. You can provide a custom send timeout to override the one globally defined.
Attributes
Notify the shard manager that shards can now be assigned to this pod.
Notify the shard manager that shards can now be assigned to this pod.
Attributes
Register a new entity type, allowing pods to send messages to entities of this type. It takes a behavior
which is a function from an entity ID and a queue of messages to a ZIO computation that runs forever and consumes those messages. You can use ZIO.interrupt
from the behavior to stop it (it will be restarted the next time the entity receives a message). If provided, the optional terminateMessage
will be sent to the entity before it is stopped, allowing for cleanup logic.
Register a new entity type, allowing pods to send messages to entities of this type. It takes a behavior
which is a function from an entity ID and a queue of messages to a ZIO computation that runs forever and consumes those messages. You can use ZIO.interrupt
from the behavior to stop it (it will be restarted the next time the entity receives a message). If provided, the optional terminateMessage
will be sent to the entity before it is stopped, allowing for cleanup logic.
Attributes
Same as register
, but will automatically call unregister
when the Scope
is terminated.
Same as register
, but will automatically call unregister
when the Scope
is terminated.
Attributes
Start a computation that is guaranteed to run only on a single pod. Each pod should call registerSingleton
but only a single pod will actually run it at any given time.
Start a computation that is guaranteed to run only on a single pod. Each pod should call registerSingleton
but only a single pod will actually run it at any given time.
Attributes
Register a new topic type, allowing pods to broadcast messages to subscribers. It takes a behavior
which is a function from a topic and a queue of messages to a ZIO computation that runs forever and consumes those messages. You can use ZIO.interrupt
from the behavior to stop it (it will be restarted the next time the topic receives a message). If provided, the optional terminateMessage
will be sent to the topic before it is stopped, allowing for cleanup logic.
Register a new topic type, allowing pods to broadcast messages to subscribers. It takes a behavior
which is a function from a topic and a queue of messages to a ZIO computation that runs forever and consumes those messages. You can use ZIO.interrupt
from the behavior to stop it (it will be restarted the next time the topic receives a message). If provided, the optional terminateMessage
will be sent to the topic before it is stopped, allowing for cleanup logic.
Attributes
Terminate a given entity. If a termination message was provided, that message will be sent to the entity and no new message will be enqueued after that. If no termination message was provided, the entity will be stopped immediately. This method can only be used if the entity is hosted on the current pod (otherwise it will do nothing). Typically, you would use this method from inside the entity behavior to stop itself.
Terminate a given entity. If a termination message was provided, that message will be sent to the entity and no new message will be enqueued after that. If no termination message was provided, the entity will be stopped immediately. This method can only be used if the entity is hosted on the current pod (otherwise it will do nothing). Typically, you would use this method from inside the entity behavior to stop itself.
Attributes
Notify the shard manager that shards must be unassigned from this pod.
Notify the shard manager that shards must be unassigned from this pod.
Attributes
Concrete fields
A layer that sets up sharding communication between pods.
A layer that sets up sharding communication between pods.