Convience class for queues

Hierarchy

  • AMQPQueue

Constructors

Properties

channel: AMQPChannel
name: string

Methods

  • Bind the queue to an exchange

    Parameters

    • exchange: string
    • routingKey: string = ""
    • args: {} = {}

      Returns Promise<AMQPQueue>

    • Poll the queue for messages

      Parameters

      • params: {
            noAck: undefined | boolean;
        } = {}
        • noAck: undefined | boolean

          automatically acknowledge messages when received

      Returns Promise<null | AMQPMessage>

    • Publish a message directly to the queue

      Parameters

      • body: null | string | ArrayBuffer | Buffer | Uint8Array

        the data to be published, can be a string or an uint8array

      • properties: AMQPProperties = {}

        publish properties

      Returns Promise<AMQPQueue>

      fulfilled when the message is enqueue on the socket, or if publish confirm is enabled when the message is confirmed by the server

    • Delete a binding between this queue and an exchange

      Parameters

      • exchange: string
      • routingKey: string = ""
      • args: {} = {}

        Returns Promise<AMQPQueue>

      Generated using TypeDoc