Interface ConnectionGetQueueOptions

Options for getting a queue from a channel.

Hierarchy

  • AssertQueue
    • ConnectionGetQueueOptions

Properties

arguments?: any

Additional arguments to pass when creating the queue.

autoDelete?: boolean

Whether the queue should be automatically deleted when it has no more consumers.

deadLetterExchange?: string

The exchange to which messages will be sent if they are rejected or expire.

deadLetterRoutingKey?: string

The routing key to use when sending messages to the dead letter exchange.

durable?: boolean

Whether the queue should be durable (i.e. survive a broker restart).

exclusive?: boolean

Whether the queue should be exclusive to this connection.

expires?: number

The time in milliseconds after which the queue will be deleted.

maxLength?: number

The maximum number of messages that the queue can hold.

maxPriority?: number

The maximum priority value for messages in the queue.

messageTtl?: number

The time-to-live (TTL) for messages in the queue.

type: "confirm" | "basic"

The type of the queue.