Class Producer<T>

Type Parameters

  • T extends string | object | Buffer

Hierarchy

  • RabbitSession<Channel>
    • Producer

Constructors

  • Type Parameters

    • T extends string | object | Buffer

    Parameters

    • target: string
    • routing_key: undefined | string
    • injector: Injector

    Returns Producer<T>

Properties

_cache: Barbeque<[content: Buffer, options: Publish]> = ...
_send: ((content, options) => void)

Type declaration

    • (content, options): void
    • Parameters

      • content: Buffer
      • options: Publish

      Returns void

channel: undefined | Channel
channel_drain: boolean = true
injector: Injector

Methods

  • Parameters

    • callback: ((channel) => void)
        • (channel): void
        • Parameters

          • channel: Channel

          Returns void

    Returns void

Generated using TypeDoc