struct Movie::ActorPath

Overview

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

Included Modules

Defined in:

movie/path.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(address : Address, elements : Array(String)) #

[View source]
def self.new(pull : JSON::PullParser) #

[View source]
def self.new(*, __pull_for_json_serializable pull : JSON::PullParser) #

[View source]
def self.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"


[View source]
def self.root(address : Address) : ActorPath #

Creates a root path for the given address.


[View source]

Instance Method Detail

def /(child : String) : ActorPath #

Creates a child path with the given name.


[View source]
def ==(other : ActorPath) : Bool #

[View source]
def address : Address #

[View source]
def elements : Array(String) #

[View source]
def hash(hasher) #
Description copied from struct Struct

See Object#hash(hasher)


[View source]
def name : String #

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


[View source]
def parent : ActorPath | Nil #

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


[View source]
def root? : Bool #

Returns true if this is a root path.


[View source]
def to_s(io : IO) : Nil #
Description copied from struct Struct

Same as #inspect(io).


[View source]
def to_s : String #

Returns the canonical string representation.


[View source]