View Source WhiteRabbit.ChannelsAndConnSupervisor (White Rabbit v0.2.0)
Supervisor of 1 WhiteRabbit.Connection
and 1 WhiteRabbit.ChannelSupervisor
Has startegy :rest_for_one
so if the WhiteRabbit.Connection
dies, the connection will be restarted along with all the channels associated with the WhiteRabbit.ChannelSupervisor
.
If only one channel dies, this supervisor doesn't care as that's the job of the WhiteRabbit.ChannelSupervisor
.
ChannelsAndConnSupervisor Layout:
ChannelSupervisor
/ / AMQP Conn. WhiteRabbit.ChannelSupervisor
Link to this section Summary
Functions
Returns a specification to start this module under a supervisor.
Link to this section Types
@type t() :: %WhiteRabbit.ChannelsAndConnSupervisor{ channels: [WhiteRabbit.Channel.t()], connection: atom() }
Link to this section Functions
Returns a specification to start this module under a supervisor.
See Supervisor
.