struct

Movie::ActorPath

Inherits JSON::Serializable < Struct < Value < Object

ActorPath represents the full path to an actor, including its address and the hierarchical path within the actor system.

Constructors

new(address : Address, elements : Array(String))
Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source
parse(path : String) : ActorPath

Parses an actor path string. Format: address/path/to/actor Examples: "movie://my-system/user/actor1" "movie.tcp://my-system@127.0.0.1:2552/user/actor1"

Source
root(address : Address) : ActorPath

Creates a root path for the given address.

Source

Instance methods

/(child : String) : ActorPath

Creates a child path with the given name.

Source
==(other : ActorPath) : Bool
Source
address
Source
elements
Source
hash(hasher)

See Object#hash(hasher)

Source
name

Returns the name of this actor (last path element).

Source
parent

Returns the parent path, or nil if this is the root.

Source
root?

Returns true if this is a root path.

Source
to_s(io : IO) : Nil

Same as #inspect(io).

Source
to_s

Returns the canonical string representation.

Source