Options
All
  • Public
  • Public/Protected
  • All
Menu

Abstraction over AMQP exchange operations on a Channel.

Hierarchy

  • Exchange

Index

Constructors

Properties

Methods

Constructors

constructor

  • Parameters

    • channel: Channel

      AMQP channel from amqplib

    • name: string

      Exchange name

    Returns Exchange

Properties

Private #channel

#channel: Channel

Private #name

#name: string

Methods

bind

  • bind(source: string, pattern: string, args?: any): Promise<void>
  • Bind an exchange to this exchange.

    Will call Channel.bindExchange.

    Parameters

    • source: string
    • pattern: string
    • Optional args: any

    Returns Promise<void>

check

  • check(): Promise<void>
  • Check that the exchange exists. If it doesn’t exist, the channel will be closed with an error. If it does exist, happy days.

    Will call Channel.checkExchange.

    Returns Promise<void>

remove

unbind

  • unbind(source: string, pattern: string, args?: any): Promise<void>
  • Unind an exchange from this exchange.

    Will call Channel.unbindExchange.

    Parameters

    • source: string
    • pattern: string
    • Optional args: any

    Returns Promise<void>

Generated using TypeDoc