struct

Movie::Address

Inherits JSON::Serializable < Struct < Value < Object

Address represents the location of an actor system. For local actors, host and port are nil. For remote actors, they specify the network location.

Constructors

local(system_name : String) : Address

Creates a local address for the given system name.

Source
new(protocol : String, system : String, host : String | Nil = nil, port : Int32 | Nil = nil)
Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source
parse(uri : String) : Address

Parses an address URI string. Format: protocol://system@host:port or protocol://system (for local) Examples: "movie://my-system" -> local address "movie.tcp://my-system@127.0.0.1:2552" -> remote address

Source
remote(system_name : String, host : String, port : Int32) : Address

Creates a remote address.

Source

Instance methods

==(other : Address) : Bool
Source
hash(hasher)

See Object#hash(hasher)

Source
host
Source
local?

Returns true if this is a local address (no host/port).

Source
port
Source
protocol
Source
remote?

Returns true if this is a remote address.

Source
system
Source
to_s(io : IO) : Nil

Same as #inspect(io).

Source
to_s

Returns the canonical string representation.

Source