Options
All
  • Public
  • Public/Protected
  • All
Menu

Class SQSQueue<T>

Type parameters

Hierarchy

Implements

Constructors

  • new SQSQueue(webda: Core, name: string, params?: any): SQSQueue

Properties

_createException: string
_initException: any
_initTime: number
_interrupt: boolean
_name: string

Service name

_timeout: any
_webda: Core

Webda Core object

callback: Function
logger: Logger

Logger with class context

parameters: T

Hold the parameters for your service

It will be bring from the webda.config.json

pause: number
sqs: any
defaultMaxListeners: number

Methods

  • __clean(): Promise<unknown>
  • _getQueueInfosFromUrl(): object
  • _workerReceiveMessage(): Promise<void>
  • _workerResume(): Promise<void>
  • addListener(event: string | symbol, listener: function): this
  • addRoute(url: string, methods: HttpMethodType[], executer: Function, openapi?: object, allowPath?: boolean): void
  • computeParameters(): void
  • deleteMessage(receipt: any): Promise<any>
  • emit(event: string | symbol, ...args: any[]): boolean
  • emitSync(event: any, data: any): Promise<any[]>
  • eventNames(): Array<string | symbol>
  • getARNPolicy(): object
  • getMaxListeners(): number
  • getName(): string
  • getParameters(): T
  • getService<T>(service: string): T
  • getWebda(): Core
  • init(): Promise<void>
  • initRoutes(): void
  • listenerCount(type: string | symbol): number
  • listeners(event: string | symbol): Function[]
  • off(event: string | symbol, listener: function): this
  • on(event: string | symbol, listener: function): this
  • onAsync(event: any, callback: any, queue?: string): void
  • once(event: string | symbol, listener: function): this
  • prependListener(event: string | symbol, listener: function): this
  • prependOnceListener(event: string | symbol, listener: function): this
  • rawListeners(event: string | symbol): Function[]
  • receiveMessage(): Promise<any>
  • reinit(config: any): Promise<void>
  • removeAllListeners(event?: string | symbol): this
  • removeListener(event: string | symbol, listener: function): this
  • resolve(): void
  • sendMessage(params: any): Promise<any>
  • setMaxListeners(n: number): this
  • size(): Promise<number>
  • stop(): void
  • toPublicJSON(object: any): string
  • worker(callback: any): Promise<void>
  • getModda(): ModdaDefinition
  • listenerCount(emitter: EventEmitter, event: string | symbol): number

Generated using TypeDoc