Interface Exchange<TMessage>

Type Parameters

  • TMessage = unknown

Hierarchy

  • Exchange

Properties

metaType: "exchange"

Methods

  • send all unrouted messages to this exchange

    Parameters

    • alternateExchange: string | Exchange<unknown>

    Returns Exchange<TMessage>

  • if true, the exchange will be destroyed once the number of bindings for which it is the source drop to zero. Defaults to false.

    Parameters

    • Optional autoDelete: boolean

    Returns Exchange<TMessage>

  • Set the exchange type as 'delayed' and x-delayed-type attribute as the specified

    Parameters

    • xDelayedType: StandardExchangeType

    Returns Exchange<TMessage>

  • if true, the exchange will survive broker restarts. Defaults to true

    Parameters

    • Optional durable: boolean

    Returns Exchange<TMessage>

  • Use checkExchange instead of assertExchange for setup

    Parameters

    • Optional passive: boolean

    Returns Exchange<TMessage>

Generated using TypeDoc