Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • RealQueueClass

Implements

Index

Constructors

constructor

  • Returns RealQueueClass

Properties

Private _handler

_handler: RealQueue

Private alreadyAddedJobIds

alreadyAddedJobIds: number[] = []

Private queue

queue: Array<RealQueueOptions & { run: RunFunction }> = []

Accessors

handler

  • Returns RealQueue

size

  • get size(): number
  • Returns number

Methods

dequeue

  • Returns RunFunction | undefined

enqueue

  • Parameters

    Returns void

enqueueFromList

  • enqueueFromList(list: Array<Job>): void
  • Parameters

    • list: Array<Job>

    Returns void

filter

  • Parameters

    Returns RunFunction[]

filterQueueItem

Private listenDeletions

  • listenDeletions(): void
  • Listen if jobs got deleted, remove them from the queue so they never get executed again.

    Returns void

Private listenRetries

  • listenRetries(): void
  • Listen if jobs got retried, remove them from the queue so they can be added again.

    Returns void

Private removeByType

  • removeByType(type: string, forgetAboutAlreadyAdded?: boolean): void
  • Parameters

    • type: string
    • Default value forgetAboutAlreadyAdded: boolean = true

    Returns void

setHandler

  • setHandler(handler: RealQueueClass["handler"]): void
  • Parameters

    • handler: RealQueueClass["handler"]

    Returns void

Generated using TypeDoc