Optional
confirmOptional
exchangeAny exchange-exchange bindings to be declared before the consumer and whenever the connection is reset.
Optional
arguments?: Record<string, any>A set of arguments for the binding. The syntax and semantics of these arguments depends on the exchange class.
Specifies the name of the destination exchange to bind.
Optional
routingSpecifies the routing key for the binding. The routing key is used for routing messages depending on the exchange configuration. Not all exchanges use a routing key - refer to the specific exchange documentation.
Specifies the name of the source exchange to bind.
Optional
exchangesAny exchanges to be declared before the consumer and whenever the connection is reset
Optional
arguments?: { Optional
alternate-Optional
autoIf set, the exchange is deleted when all queues have finished using it.
Optional
durable?: booleanIf set when creating a new exchange, the exchange will be marked as durable. Durable exchanges remain active when a server restarts. Non-durable exchanges (transient exchanges) are purged if/when a server restarts.
Exchange names starting with "amq." are reserved for pre-declared and standardised exchanges. The exchange name consists of a non-empty sequence of these characters: letters, digits, hyphen, underscore, period, or colon.
Optional
internal?: booleanIf set, the exchange may not be used directly by publishers, but only when bound to other exchanges. Internal exchanges are used to construct wiring that is not visible to applications.
Optional
passive?: booleanIf set, the server will reply with Declare-Ok if the exchange already exists with the same name, and raise an error if not. The client can use this to check whether an exchange exists without modifying the server state. When set, all other method fields except name and no-wait are ignored. A declare with both passive and no-wait has no effect. Arguments are compared for semantic equivalence.
Optional
type?: stringdirect, topic, fanout, or headers: Each exchange belongs to one of a set of exchange types implemented by the server. The exchange types define the functionality of the exchange - i.e. how messages are routed through it.
Optional
maxRetries are disabled by default. Increase this number to retry when a request fails due to timeout or connection loss. The Connection options acquireTimeout, retryLow, and retryHigh will affect time between retries.
Optional
queueAny queue-exchange bindings to be declared before the consumer and whenever the connection is reset.
Optional
arguments?: Record<string, any>Name of the exchange to bind to.
Optional
queue?: stringSpecifies the name of the queue to bind. If blank, then the last declared queue on the channel will be used.
Optional
routingSpecifies the routing key for the binding. The routing key is used for routing messages depending on the exchange configuration. Not all exchanges use a routing key - refer to the specific exchange documentation. If the queue name is empty, the server uses the last queue declared on the channel. If the routing key is also empty, the server uses this queue name for the routing key as well. If the queue name is provided but the routing key is empty, the server does the binding with that empty routing key. The meaning of empty routing keys depends on the exchange implementation.
Optional
queuesDefine any queues to be declared before the first publish and whenever the connection is reset. Same as Channel.queueDeclare
Optional
arguments?: { Optional
x-Optional
x-Optional
x-Queue Expiry https://www.rabbitmq.com/ttl.html#queue-ttl
Optional
x-Optional
x-Optional
x-Per-Queue Message TTL https://www.rabbitmq.com/ttl.html#per-queue-message-ttl
Optional
x-Optional
x-Optional
autoIf set, the queue is deleted when all consumers have finished using it. The last consumer can be cancelled either explicitly or because its channel is closed. If there was no consumer ever on the queue, it won't be deleted. Applications can explicitly delete auto-delete queues using the Delete method as normal.
Optional
durable?: booleanIf set when creating a new queue, the queue will be marked as durable. Durable queues remain active when a server restarts. Non-durable queues (transient queues) are purged if/when a server restarts. Note that durable queues do not necessarily hold persistent messages, although it does not make sense to send persistent messages to a transient queue.
Optional
exclusive?: booleanExclusive queues may only be accessed by the current connection, and are deleted when that connection closes. Passive declaration of an exclusive queue by other connections are not allowed.
Optional
passive?: booleanIf set, the server will reply with Declare-Ok if the queue already exists with the same name, and raise an error if not. The client can use this to check whether a queue exists without modifying the server state. When set, all other method fields except name and no-wait are ignored. A declare with both passive and no-wait has no effect.
Optional
queue?: stringThe queue name MAY be empty, in which case the server MUST create a new queue with a unique generated name and return this to the client in the Declare-Ok method. Queue names starting with "amq." are reserved for pre-declared and standardised queues. The queue name can be empty, or a sequence of these characters: letters, digits, hyphen, underscore, period, or colon.
Optional
timeoutMax time to wait for a response, in milliseconds. Must be > 0. Note that the acquireTimeout will also affect requests.
Enable publish-confirm mode. See Channel.confirmSelect