Commanded v0.18.1 Commanded.Aggregates.Supervisor View Source

Supervises Commanded.Aggregates.Aggregate instance processes.

Link to this section Summary

Functions

Returns a specification to start this module under a supervisor.

Callback invoked to start the supervisor and during hot code upgrades.

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

Link to this section Functions

Returns a specification to start this module under a supervisor.

See Supervisor.

Callback invoked to start the supervisor and during hot code upgrades.

Developers typically invoke Supervisor.init/2 at the end of their init callback to return the proper supervision flags.

Callback implementation for Supervisor.init/1.

Link to this function

open_aggregate(aggregate_module, aggregate_uuid) View Source

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

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