gen_rmq v2.4.0 GenRMQ.Consumer.QueueConfiguration View Source

Represents configuration of a Consumer queue.

While this module exists to make management of Consumer queue configurations easier, right now it should be considered a private implementation detail with respect to the consumer configuration API.

Link to this section Summary

Link to this section Types

Link to this type

queue_options()

View Source
queue_options() ::
  []
  | [{:durable, boolean()}]
  | [durable: boolean(), max_priority: pos_integer()]
  | [durable: boolean(), ttl: pos_integer()]
  | [{:max_priority, pos_integer()}]
  | [max_priority: pos_integer(), ttl: pos_integer()]
  | [durable: boolean(), max_priority: pos_integer(), ttl: pos_integer()]
Link to this type

t()

View Source
t() :: %GenRMQ.Consumer.QueueConfiguration{
  durable: boolean(),
  max_priority: nil | pos_integer(),
  name: String.t(),
  ttl: nil | pos_integer()
}

Link to this section Functions

Link to this function

build_queue_arguments(qc, arguments)

View Source
Link to this function

build_ttl_arguments(qc, arguments)

View Source
Link to this function

durable(queue_configuration)

View Source
durable(t()) :: boolean()
Link to this function

max_priority(queue_configuration)

View Source
max_priority(t()) :: nil | pos_integer()
Link to this function

name(queue_configuration)

View Source
name(t()) :: String.t()
Link to this function

new(name, args \\ [])

View Source
new(String.t(), queue_options()) :: t()
Link to this function

new(name, durable, ttl, mp)

View Source
new(String.t(), boolean(), nil | pos_integer(), nil | pos_integer()) :: t()
Link to this function

ttl(queue_configuration)

View Source
ttl(t()) :: nil | pos_integer()