class
Movie::ActorRegistry
- Movie::ActorRegistry
- Reference
- Object
Defined in:
movie.crConstructors
Instance Method Summary
- #[](id : Int32)
- #context(id : Int32)
- #dead_letters : ActorRef(DeadLetter) | Nil
- #deregister(id : Int32)
- #empty? : Bool
- #rebind_paths(address : Address)
- #register_context(id : Int32, context : AbstractActorContext)
- #root_guardian : ActorRef(RootGuardianMessage) | Nil
-
#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
-
#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)
- #start
- #supervision_config=(config : SupervisionConfig)
- #system=(system : AbstractActorSystem | Nil) forall T
- #system_guardian : ActorRef(SystemGuardianMessage) | Nil
- #user_guardian : ActorRef(UserGuardianMessage) | Nil
Constructor Detail
Instance Method Detail
def 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
def 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)