Typed, observable failure of EventLog admission or durable commitment.
Summary
Functions
Builds an admission failure, which has no durability receipt.
Builds a post-admission persistence failure.
Removes the original receipt before replaying a retained failure to a later subscriber.
Types
@type stage() :: :admission | :persistence
@type t() :: %MingaAgent.EventLog.Failure{ event_type: MingaAgent.EventLog.EventRecord.event_type(), reason: term(), receipt: reference() | nil, stage: stage() }
Functions
@spec admission(MingaAgent.EventLog.EventRecord.event_type(), term()) :: t()
Builds an admission failure, which has no durability receipt.
@spec persistence(reference(), MingaAgent.EventLog.EventRecord.event_type(), term()) :: t()
Builds a post-admission persistence failure.
Removes the original receipt before replaying a retained failure to a later subscriber.