AMQPHelpers.Reliability.Producer.start_link
You're seeing just the function
start_link
, go back to AMQPHelpers.Reliability.Producer module for more information.
Link to this function
start_link(opts \\ [])
Specs
start_link(options()) :: GenServer.on_start()
Starts a Producer
process linked to the current process.
Options
The following option can be given to Producer
when starting it. Note that
queue_name
is required.
adapter
- Sets theAMQPHelpers.Adapter
. Defaults toAMQPHelpers.Adapters.AMQP
.setup_channel_on_init
- Whether to configure the channel for reliable message sending on init or not. Defaults tofalse
.channel
- The channel to use to consume messages. NOTE: do not use this for production environments because this producer does not supervise the given channel. Instead, usechannel_name
which makes use ofAMQP.Application
.channel_name
- The name of the configured channel to use. SeeAMQP.Application
for more information. Defaults to:default
.retry_interval
- The number of millisecond to wait if an error happens when trying to consume messages or when trying to open a channel.
GenServer.options/0
are also available. See GenServer.start_link/2
for
more information about these.