Options
All
  • Public
  • Public/Protected
  • All
Menu

Class ClientRMQ

Hierarchy

Index

Constructors

constructor

  • new ClientRMQ(options: RmqOptions["options"]): ClientRMQ

Properties

Protected channel

channel: any = null

Protected client

client: any = null

Protected connection

connection: Promise<any>

Protected deserializer

deserializer: ProducerDeserializer

Protected Readonly logger

logger: Logger = new Logger(ClientProxy.name)

Protected Readonly options

options: RmqOptions["options"]

Protected persistent

persistent: boolean

Protected queue

queue: string

Protected queueOptions

queueOptions: any

Protected replyQueue

replyQueue: string

Protected responseEmitter

responseEmitter: EventEmitter

Protected routingMap

routingMap: Map<string, Function> = new Map<string, Function>()

Protected serializer

serializer: ProducerSerializer

Protected urls

urls: string[] | RmqUrl[]

Methods

Protected assignPacketId

close

  • close(): void

connect

  • connect(): Promise<any>

Protected connect$

  • connect$(instance: any, errorEvent?: string, connectEvent?: string): Observable<any>

consumeChannel

  • consumeChannel(): void

createChannel

  • createChannel(): Promise<void>

createClient

  • createClient<T>(): T

Protected createObserver

  • createObserver<T>(observer: Observer<T>): (packet: WritePacket) => void

Protected dispatchEvent

emit

  • emit<TResult, TInput>(pattern: any, data: TInput): Observable<TResult>

Protected getOptionsProp

  • getOptionsProp<T, K>(obj: T, prop: K, defaultValue?: T[K]): T[K]

handleDisconnectError

  • handleDisconnectError(client: any): void

handleError

  • handleError(client: any): void

handleMessage

  • handleMessage(packet: unknown, callback: (packet: WritePacket) => any): void

Protected initializeDeserializer

  • initializeDeserializer(options: ClientOptions["options"]): void

Protected initializeSerializer

  • initializeSerializer(options: ClientOptions["options"]): void

mergeDisconnectEvent

  • mergeDisconnectEvent<T>(instance: any, source$: Observable<T>): Observable<T>

Protected normalizePattern

  • normalizePattern(pattern: MsPattern): string

Protected publish

send

  • send<TResult, TInput>(pattern: any, data: TInput): Observable<TResult>

setupChannel

  • setupChannel(channel: any, resolve: Function): Promise<void>

Generated using TypeDoc