ExESDB.Commanded.AggregateListenerSupervisor (ex_esdb_commanded v0.4.0)

DynamicSupervisor for managing AggregateListener processes.

Uses Swarm for distributed process registration. Each supervisor is uniquely identified by a combination of store_id and node().

Summary

Functions

Returns a specification to start this module under a supervisor.

Starts a new AggregateListener under supervision.

Stops a specific AggregateListener.

Functions

child_spec(arg)

Returns a specification to start this module under a supervisor.

See Supervisor.

hash_key(store_id)

start_link(opts)

start_listener(config)

@spec start_listener(map()) :: {:ok, pid()} | {:error, term()}

Starts a new AggregateListener under supervision.

Returns the PID of the started listener or an error.

stop_listener(store_id, pid)

@spec stop_listener(atom(), pid()) :: :ok

Stops a specific AggregateListener.

swarm_key(store_id)