Options
All
  • Public
  • Public/Protected
  • All
Menu

Class RabbitMQServer

Hierarchy

Implements

References

EventEmitter

EventEmitter:

Constructors

constructor

Properties

Static Readonly captureRejectionSymbol

captureRejectionSymbol: unique symbol

Static captureRejections

captureRejections: boolean

Sets or gets the default captureRejection value for all emitters.

Static defaultMaxListeners

defaultMaxListeners: number

Static Readonly errorMonitor

errorMonitor: unique symbol

This symbol shall be used to install a listener for only monitoring 'error' events. Listeners installed using this symbol are called before the regular 'error' listeners are called.

Installing a listener using this symbol does not change the behavior once an 'error' event is emitted, therefore the process will still crash if no regular 'error' listener is installed.

Methods

addListener

  • addListener(event: string | symbol, listener: function): this

assertAllExchange

  • assertAllExchange(): Promise<[unknown, unknown, unknown, unknown, unknown, unknown, unknown, unknown, unknown, unknown]>

assertExchange

  • assertExchange(exchange: any, type: any, options?: object): Bluebird<AssertExchange>

assertQueue

  • assertQueue(queue: any, options?: object): Promise<void>

bindQueue

  • bindQueue(queue: any, source: any, pattern?: any, args?: object): Promise<Empty>

close

  • close(): Promise<void>

closeChannel

  • closeChannel(): Promise<void>

connect

  • connect(): Promise<void>

createBinding

  • createBinding(queue: any, exchange: any): Promise<void>

createChannel

  • createChannel(): Promise<void>

createConsumer

  • createConsumer(listenerOptions: RabbitMQListenerOptions, listenerCallback: function): Promise<void>
  • Parameters

    • listenerOptions: RabbitMQListenerOptions
    • listenerCallback: function
        • (msg: ConsumeMessage | null): Promise<void>
        • Parameters

          • msg: ConsumeMessage | null

          Returns Promise<void>

    Returns Promise<void>

emit

  • emit(event: string | symbol, ...args: any[]): boolean

eventNames

  • eventNames(): Array<string | symbol>

getChannel

  • getChannel(): Channel

getMaxListeners

  • getMaxListeners(): number

init

  • init(): Promise<void>

listenerCount

  • listenerCount(event: string | symbol): number

listeners

  • listeners(event: string | symbol): Function[]

off

  • off(event: string | symbol, listener: function): this

on

  • on(event: string | symbol, listener: function): this

onChannelClose

  • onChannelClose(error: any): Promise<void>

onChannelDrain

  • onChannelDrain(): void

onChannelError

  • onChannelError(error: any): Promise<void>

onChannelReturn

  • onChannelReturn(msg: any): void

once

  • once(event: string | symbol, listener: function): this

prependListener

  • prependListener(event: string | symbol, listener: function): this

prependOnceListener

  • prependOnceListener(event: string | symbol, listener: function): this

rawListeners

  • rawListeners(event: string | symbol): Function[]

removeAllListeners

  • removeAllListeners(event?: string | symbol): this

removeListener

  • removeListener(event: string | symbol, listener: function): this

setMaxListeners

  • setMaxListeners(n: number): this

Static listenerCount

  • listenerCount(emitter: EventEmitter, event: string | symbol): number

Static on

  • on(emitter: EventEmitter, event: string, options?: StaticEventEmitterOptions): AsyncIterableIterator<any>

Static once

  • once(emitter: NodeEventTarget, event: string | symbol, options?: StaticEventEmitterOptions): Promise<any[]>

Generated using TypeDoc