class Movie::Cluster::ServiceRef(T)

Overview

A typed actor reference resolved from a receptionist listing.

Defined in:

movie/cluster/receptionist/ref.cr

Constructors

Instance Method Summary

Instance methods inherited from class Movie::ActorRefBase

id : Int32 id, path : ActorPath | Nil path, path=(path : ActorPath | Nil) path=, remote_peer_address : Address | Nil remote_peer_address, remote_peer_node_uid : String | Nil remote_peer_node_uid, send_system(message : SystemMessage) send_system

Constructor methods inherited from class Movie::ActorRefBase

new(id : Int32, path : ActorPath | Nil = nil) new

Constructor Detail

def self.new(system : Movie::AbstractActorSystem, service_path : Movie::ActorPath, owner : UniqueAddress | Nil = nil) #

[View source]

Instance Method Detail

def <<(message : T) : Nil #

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

[View source]
def ask(message : T, response_type : R.class, timeout : Time::Span = 30.seconds) : Movie::Future(R) forall R #

[View source]
def hash(hasher) #
Description copied from class Reference

See Object#hash(hasher)


[View source]
def owner : UniqueAddress | Nil #

Exact cluster-member incarnation that owns this service registration. This is nil only for references constructed directly instead of from a receptionist listing.


[View source]
def send_system(message : Movie::SystemMessage) : Nil #

[View source]
def service_path : Movie::ActorPath #

[View source]
def tell_from(sender : Movie::ActorRefBase | Nil, message : T) : Nil #

[View source]