class
Movie::ActorContext(T)
- Movie::ActorContext(T)
- Movie::AbstractActorContext
- Reference
- Object
Defined in:
movie/context.crConstructors
Instance Method Summary
- #<<(message : T)
- #accepts_user_messages? : Bool
- #ask(target : ActorRef(M), message : M, response_type : T.class = Nil, timeout : Time::Span | Nil = nil) : Future(T) forall M, T
- #attach_child(child : ActorRef(U), *, notify_child : Bool = true) forall U
- #deliver(message : T, sender : ActorRefBase | Nil)
-
#deliver_serializable(message : Object, sender : ActorRefBase | Nil) : Nil
Delivers a deserialized wire value without requiring the wire wrapper to know the actor's full generic message type (which may be a union).
- #discard_user_messages? : Bool
-
#extension(id : ExtensionId(U)) : U forall U
Retrieve a system extension via its ExtensionId (Akka-style).
- #log : Log
- #mailbox=(mailbox : Mailbox(T))
- #on_message(message : Envelope(T))
- #on_message(message : MailboxEnvelope(T))
- #on_system_message(message : Envelope(SystemMessage))
- #on_system_message(message : MailboxEnvelope(SystemMessage))
- #path : ActorPath | Nil
-
#pipe(future : Future(U), reply_to : ActorRef(V), success : U -> V, failure : Exception -> V) : Nil forall U, V
Pipe a future result to a target actor using custom success/failure mappers.
-
#pipe(future : Future(U), reply_to : ActorRef(Pipe::Message(U))) : Nil forall U
Pipe a future result to a target actor as Pipe::Success or Pipe::Failure.
- #rebind_path(path : ActorPath | Nil) : Nil
- #ref : ActorRef(T)
- #register_watcher(actor : ActorRefBase) : Bool
- #send_system_message(message : SystemMessage)
- #sender : ActorRefBase | Nil
-
#spawn(behavior : AbstractBehavior(U), restart_strategy : RestartStrategy = @restart_strategy, supervision_config : SupervisionConfig = @supervision_config, name : String | Nil = nil) : ActorRef(U) forall U
Spawns a child actor under this actor's supervision.
- #start(internal = false)
- #state
- #stop
- #supervision_config : SupervisionConfig
- #system : AbstractActorSystem
- #tell(message : T)
- #watch(actor : ActorRef(U)) forall U
- #watcher_count : Int32
Instance methods inherited from class Movie::AbstractActorContext
accepts_user_messages? : Bool
accepts_user_messages?,
deliver_serializable(message : Object, sender : ActorRefBase | Nil) : Nil
deliver_serializable,
discard_user_messages? : Bool
discard_user_messages?,
path : ActorPath | Nil
path,
rebind_path(path : ActorPath | Nil) : Nil
rebind_path,
ref : ActorRefBase
ref,
register_watcher(actor : ActorRefBase) : Bool
register_watcher
Constructor Detail
Instance Method Detail
Delivers a deserialized wire value without requiring the wire wrapper to know the actor's full generic message type (which may be a union).
Retrieve a system extension via its ExtensionId (Akka-style). Example: ctx.extension(Movie::Remote::Remoting)
Pipe a future result to a target actor using custom success/failure mappers.
Pipe a future result to a target actor as Pipe::Success or Pipe::Failure.
Spawns a child actor under this actor's supervision. If name is provided, the child gets a hierarchical path: {parent_path}/{name} If name is nil, generates a unique name based on actor ID.