ExESDB.Commanded.Adapter.SubscriptionProxySupervisor (ex_esdb_commanded v0.4.0)

Supervisor for SubscriptionProxy processes.

This supervisor ensures that SubscriptionProxy processes are restarted when they crash, and their PIDs are updated in the ExESDB store.

Each supervisor instance is associated with a specific store_id to support multiple stores in umbrella applications.

Summary

Functions

Returns a specification to start this module under a supervisor.

List all running proxy processes for a specific store.

Start a supervised SubscriptionProxy.

Stop a supervised SubscriptionProxy.

Functions

child_spec(arg)

Returns a specification to start this module under a supervisor.

See Supervisor.

list_proxies(store_id)

List all running proxy processes for a specific store.

start_link(opts)

start_proxy(metadata)

Start a supervised SubscriptionProxy.

stop_proxy(store_id, pid)

Stop a supervised SubscriptionProxy.