elsa v0.10.0 Elsa.Producer.Supervisor
Supervisor that starts and manages brod producer processes, one per topic/partition by way of the Elsa Wrapper GenServer.
Link to this section Summary
Functions
Returns a specification to start this module under a supervisor.
On startup, retrieves the number of partitions for the given topic and constructs a child spec definition for an Elsa Wrapper process to start and link to a brod producer for each one.
Start the producer supervisor process and link it to the current process.
Link to this section Functions
child_spec(init_arg)
Returns a specification to start this module under a supervisor.
See Supervisor
.
init(opts)
On startup, retrieves the number of partitions for the given topic and constructs a child spec definition for an Elsa Wrapper process to start and link to a brod producer for each one.
start_link(args)
start_link(keyword()) :: GenServer.on_start()
start_link(keyword()) :: GenServer.on_start()
Start the producer supervisor process and link it to the current process.