Stargate.Receiver.Supervisor (stargate v0.1.1) View Source
Defines a supervisor for the Stargate.Receiver
reader
and consumer connections and the associated GenStage pipeline
for processing and acknowledging messages received on the connection.
The top-level Stargate.Supervisor
passes the shared connection and
:consumer
or :reader
configurations to the receiver supervisor
to delegate management of all receiving processes.
Link to this section Summary
Functions
Returns a specification to start this module under a supervisor.
Generates a list of child processes to initialize and
start them under the supervisor with a :one_for_all
strategy
to ensure messages are not dropped if any single stage in
the pipeline fails.
Starts a Stargate.Receiver.Supevisor
and links it to the calling
process.
Link to this section Functions
Returns a specification to start this module under a supervisor.
See Supervisor
.
Generates a list of child processes to initialize and
start them under the supervisor with a :one_for_all
strategy
to ensure messages are not dropped if any single stage in
the pipeline fails.
The processors stage is configurable to a desired number of processes for parallelizing complex or long-running message handling operations.
Specs
start_link(keyword()) :: GenServer.on_start()
Starts a Stargate.Receiver.Supevisor
and links it to the calling
process.