MedEx.StreamWriter (med_ex v0.2.0)

Copy Markdown View Source

One temporary writer per authenticated stream attempt. The host issues the fence, selects a trusted directory and supervises the worker. The owner uses synchronous calls to bound one ingress stream. Push receipts distinguish accepted (volatile) from journal-backed durable boundaries. A timer checkpoint sends the owner {:med_ex_durable, writer, receipt}. A call timeout or process exit is an unknown outcome. Reconcile storage before granting a replacement.

Summary

Functions

checkpoint(pid, timeout \\ 5000)

child_spec(init_arg)

Returns a specification to start this module under a supervisor.

See Supervisor.

finish(pid, timeout \\ 20000)

interrupt(pid, reason, timeout \\ 20000)

push(pid, frame)

push(pid, fence, frame)

push(pid, fence, frame, timeout)

receipt(pid, timeout \\ 5000)

record_gap(pid, gap, timeout \\ 5000)

start_link(opts)

stats(pid)