Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface ExchangeOptions

Hierarchy

  • ExchangeOptions

Index

Properties

Optional arguments

arguments: {}

a map of additional arguments to pass in when creating an exchange

Type declaration

  • [arg: string]: any

Optional autoDelete

autoDelete: boolean

Default: true

If set, the exchange is deleted when there are no longer queues bound to it

Optional confirm

confirm: boolean

Default: false

If set, the exchange will be in confirm mode, and you will get a 'ack'|'error' event emitted on a publish, or the callback on the publish will be called

Optional durable

durable: boolean

Default: true

If 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

Optional noDeclare

noDeclare: boolean

Default: false

If set, the exchange will not be declared, this will allow the exchange to be deleted if you dont know its previous options

Optional passive

passive: boolean

Default: false

f set, the server will not create the exchange. The client can use this to check whether an exchange exists without modifying the server state

Optional type

type: "direct" | "fanout" | "topic"

Default: 'topic'

Generated using TypeDoc