class Movie::Remote::Server

Overview

Server accepts incoming TCP connections from remote actor systems.

Defined in:

movie/remote/server.cr

Constant Summary

Log = ::Log.for(self)

Constructors

Instance Method Summary

Constructor Detail

def self.new(system : Movie::AbstractActorSystem, host : String, port : Int32, path_registry : Movie::PathRegistry, local_address : Proc(Address), node_uid : String, on_message : Proc(WireEnvelope, InboundConnection, Nil), on_disconnect : Proc(InboundConnection, Nil), settings : AssociationSettings = AssociationSettings.new) #

[View source]

Instance Method Detail

def control_deduplication_stats : ControlDeduplicationStats #

[View source]
def host : String #

[View source]
def local_port : Int32 #

Returns the actual bound port (useful when binding to port 0).


[View source]
def port : Int32 #

[View source]
def retire_control_node(node_uid : String) : Int32 #

Releases receiver-side cursors only for a node incarnation that the operator has independently confirmed will never reconnect.


[View source]
def running? : Bool #

[View source]
def start : Bool #

Starts the server.


[View source]
def stop #

Stops the server and closes all connections.


[View source]