struct
Movie::ActorPath
- Movie::ActorPath
- Struct
- Value
- Object
Overview
ActorPath represents the full path to an actor, including its address and the hierarchical path within the actor system.
Included Modules
- JSON::Serializable
Defined in:
movie/path.crConstructors
- .new(address : Address, elements : Array(String))
- .new(pull : JSON::PullParser)
- .new(*, __pull_for_json_serializable pull : JSON::PullParser)
-
.parse(path : String) : ActorPath
Parses an actor path string.
-
.root(address : Address) : ActorPath
Creates a root path for the given address.
Instance Method Summary
-
#/(child : String) : ActorPath
Creates a child path with the given name.
- #==(other : ActorPath) : Bool
- #address : Address
- #elements : Array(String)
-
#hash(hasher)
See
Object#hash(hasher) -
#name : String
Returns the name of this actor (last path element).
-
#parent : ActorPath | Nil
Returns the parent path, or nil if this is the root.
-
#root? : Bool
Returns true if this is a root path.
-
#to_s(io : IO) : Nil
Same as
#inspect(io). -
#to_s : String
Returns the canonical string representation.
Constructor Detail
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"
Creates a root path for the given address.