Amqpx.Queue.declare
You're seeing just the function
declare
, go back to Amqpx.Queue module for more information.
Link to this function
declare(channel, queue \\ "", options \\ [])
Specs
declare(Amqpx.Channel.t(), Amqpx.Basic.queue(), keyword()) :: {:ok, map()} | Amqpx.Basic.error()
Declares a queue. The optional queue
parameter is used to set the name.
If set to an empty string (default), the server will assign a name.
Besides the queue name, the following options can be used:
Options
:durable
- If set, keeps the Queue between restarts of the broker. Defaults tofalse
.:auto_delete
- If set, deletes the Queue once all subscribers disconnect. Defaults tofalse
.:exclusive
- If set, only one subscriber can consume from the Queue. Defaults tofalse
.:passive
- If set, raises an error unless the queue already exists. Defaults tofalse
.:no_wait
- If set, the declare operation is asynchronous. Defaults tofalse
.:arguments
- A list of arguments to pass when declaring (of typeAmqpx.arguments/0
). See the README for more information. Defaults to[]
.