ActorContext

cc.otavia.core.actor.ActorContext
trait ActorContext

Runtime context injected into each Actor during mounting. Accessed via Actor.context.

Provides access to system-level services and actor identity metadata.

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Value members

Abstract methods

def actorId: Long

System-assigned unique ID for this actor instance.

System-assigned unique ID for this actor instance.

Attributes

def address: Address[_ <: Message]

The physical address of this actor. Use Actor.self for the typed variant.

The physical address of this actor. Use Actor.self for the typed variant.

Attributes

def isLoadBalance: Boolean

Whether this actor uses round-robin load balancing across multiple threads. When true, messages sent from co-located actor are routed to the same-thread instance for data locality.

Whether this actor uses round-robin load balancing across multiple threads. When true, messages sent from co-located actor are routed to the same-thread instance for data locality.

Attributes

def mountedThreadId: Int

Index of the cc.otavia.core.system.ActorThread this actor is pinned to.

Index of the cc.otavia.core.system.ActorThread this actor is pinned to.

Attributes

The ActorSystem this actor belongs to.

The ActorSystem this actor belongs to.

Attributes