View Source Commanded.Aggregates.Supervisor (Commanded v1.4.8)

Supervises Commanded.Aggregates.Aggregate instance processes.

Summary

Functions

Returns a specification to start this module under a supervisor.

Callback implementation for DynamicSupervisor.init/1.

Open an aggregate instance process for the given aggregate module and unique identity.

Functions

child_spec(arg)

Returns a specification to start this module under a supervisor.

See Supervisor.

init(args)

Callback implementation for DynamicSupervisor.init/1.

open_aggregate(application, aggregate_module, aggregate_uuid)

Open an aggregate instance process for the given aggregate module and unique identity.

Returns {:ok, aggregate_uuid} when a process is successfully started, or is already running.

start_link(opts)