Bounded, principal/tenant-bound modern subscription registry.
Summary
Functions
Acknowledges one delivered event and releases queue capacity.
Cancels one subscription without affecting its peers.
Returns a specification to start this module under a supervisor.
Gracefully closes one subscription.
Opens a subscription and sends an acknowledgment to the sink first.
Publishes a filtered notification with authorization rechecks.
Publishes synchronously, completing after all current subscriptions are enqueued.
Starts the bounded subscription registry.
Returns bounded public counters for active subscriptions and queued events.
Types
Functions
Acknowledges one delivered event and releases queue capacity.
Cancels one subscription without affecting its peers.
Returns a specification to start this module under a supervisor.
See Supervisor.
Gracefully closes one subscription.
@spec open(pid(), term(), term(), term(), pid(), term(), (map() -> boolean()) | nil) :: {:ok, term()} | {:error, term()}
Opens a subscription and sends an acknowledgment to the sink first.
Publishes a filtered notification with authorization rechecks.
Publishes synchronously, completing after all current subscriptions are enqueued.
@spec start_link(keyword()) :: GenServer.on_start()
Starts the bounded subscription registry.
@spec stats(pid()) :: %{count: non_neg_integer(), queued: non_neg_integer()}
Returns bounded public counters for active subscriptions and queued events.