class Movie::Remote::ControlDeduplicator

Overview

Tracks one contiguous cursor per node/stream. The global mutex protects only stream lookup; delivery is serialized by the affected stream so a slow actor route does not block unrelated associations.

Defined in:

movie/remote/control_delivery.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(max_streams : Int32 = 8192) #

[View source]

Instance Method Detail

def deliver(node_uid : String, stream : String, sequence : Int64, &) : ControlObservation #

[View source]
def observe(node_uid : String, stream : String, sequence : Int64) : ControlObservation #

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

Retires all streams for a process incarnation. Callers must only use this after confirming that the node UID cannot reconnect.


[View source]

[View source]