class

Movie::ActorRegistry

Inherits Reference < Object

Constructors

Instance methods

[](id : Int32)
Source
context(id : Int32)
Source
dead_letters
Source
deregister(id : Int32)
Source
register_context(id : Int32, context : AbstractActorContext)
Source
spawn(behavior : AbstractBehavior(T), restart_strategy : RestartStrategy = RestartStrategy::RESTART, supervision_config : SupervisionConfig = @default_supervision_config, name : String | Nil = nil) : ActorRef(T) forall T

Spawns an actor under the user guardian If name is provided, the actor gets path /user/{name} If name is nil, generates a unique name based on actor ID

Source
spawn_child(behavior : AbstractBehavior(T), restart_strategy : RestartStrategy = RestartStrategy::RESTART, supervision_config : SupervisionConfig = @default_supervision_config, name : String | Nil = nil, parent_path : ActorPath | Nil = nil) : ActorRef(T) forall T

Spawns an actor under a specific parent path (for hierarchical spawning from ActorContext)

Source
start
Source
supervision_config=(config : SupervisionConfig)
Source
system=(system : AbstractActorSystem | Nil) forall T
Source
system_guardian
Source
user_guardian
Source