elsa v0.11.0 Elsa.Consumer.WorkerSupervisor
Supervisor that starts and manages consumer worker processes based on
given configuration. Without a specified :partition
, starts a worker for
each partition on the configured topic. Otherwise, starts a worker for the
single, specified partition.
Link to this section Summary
Functions
Returns a specification to start this module under a supervisor.
On startup, determines the partitons to subscribe to from given configuration and generates a worker child spec for each.
Start the consumer worker supervisor and link it to the current process. Registers itself to the Elsa Registry.
Link to this section Functions
child_spec(init_arg)
Returns a specification to start this module under a supervisor.
See Supervisor
.
init(args)
On startup, determines the partitons to subscribe to from given configuration and generates a worker child spec for each.
start_link(args)
start_link(keyword()) :: GenServer.on_start()
start_link(keyword()) :: GenServer.on_start()
Start the consumer worker supervisor and link it to the current process. Registers itself to the Elsa Registry.