class Movie::ActorRegistry

Defined in:

movie.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new #

[View source]

Instance Method Detail

def [](id : Int32) #

[View source]
def context(id : Int32) #

[View source]
def dead_letters : ActorRef(DeadLetter) | Nil #

[View source]
def deregister(id : Int32) #

[View source]
def empty? : Bool #

[View source]
def rebind_paths(address : Address) #

[View source]
def register_context(id : Int32, context : AbstractActorContext) #

[View source]
def root_guardian : ActorRef(RootGuardianMessage) | Nil #

[View source]
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


[View source]
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)


[View source]
def start #

[View source]
def supervision_config=(config : SupervisionConfig) #

[View source]
def system=(system : AbstractActorSystem | Nil) forall T #

[View source]
def system_guardian : ActorRef(SystemGuardianMessage) | Nil #

[View source]
def user_guardian : ActorRef(UserGuardianMessage) | Nil #

[View source]