An IQueueStorage with MongoDB as backend.

Hierarchy

  • QueueStorageBase
    • MongoQueueStorage

Constructors

Properties

_taskCollectionName: string = defaultQueueTasksCollectionName
_waitBeforeRetry: number = defaultWaitBeforeRetryTime
getDb: (() => Promise<Db>)

Type declaration

    • (): Promise<Db>
    • Returns the Mongo database to use.

      Returns Promise<Db>

      The promise with the instance.

getLogger: (() => ILogger)

Type declaration

getSystemName: (() => Optional<string>)

Type declaration

    • (): Optional<string>
    • Returns the (normalized) system name.

      Returns Optional<string>

      The system name.

setImmediate: SetImmediateFunc

setImmediate function to use.

setTimeout: SetTimeoutFunc

setTimeout function to use.

Methods

  • Returns Promise<IQueueTaskContext[]>

    Inherit Doc

  • Parameters

    • options: IQueueTaskInStorageOptions

    Returns Promise<IQueueTaskContext>

    Inherit Doc

  • Returns a copy of the list of error handlers.

    Returns QueueErrorHandler[]

    The list of error handlers.

  • Returns a copy of the list of execution handlers.

    Returns QueueExecutionHandler[]

    The list of execution handlers.

  • Parameters

    • event: QueueStorageEvent
    • handler: Func

    Returns MongoQueueStorage

    Inherit Doc

Generated using TypeDoc