Backplane.AgentRuntime.Inbox (backplane_agent_runtime v1.6.0)

Copy Markdown

Bounded receiver inbox with payload-digest deduplication.

A duplicate correlation ID with the same digest returns the existing receipt. The same key with changed payload conflicts. Overflow is explicit.

Summary

Types

t()

@type t() :: map()

Functions

deliver(inbox, message)

@spec deliver(t(), map()) ::
  {:ok, t(), %{status: :accepted | :duplicate}}
  | {:error, Backplane.AgentRuntime.Error.t()}

new(limit)

@spec new(non_neg_integer()) ::
  {:ok, t()} | {:error, Backplane.AgentRuntime.Error.t()}