class Movie::Cluster::ShardedEntityRef(T)

Defined in:

movie/cluster/sharding/entity_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(extension : Movie::ClusterShardingExtension, entity_type : ShardedEntityType(T), entity_id : String) #

[View source]

Instance Method Detail

def <<(message : T) : Nil #

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

[View source]
def entity_id : String #

[View source]
def entity_type : String #

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

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

[View source]