Class to hold pending, holding and executing jobs for one key

Hierarchy

  • KeyQueue

Constructors

Properties

Methods

Constructors

  • Parameters

    • Optional key: string

    Returns KeyQueue

Properties

active: LockJob<any> = null

Active job that is holding this key. This job could be waiting on other keys or executing.

jobs: LockJob<any>[] = []

Queue of jobs waiting to be executed. Jobs in this state are governed by the wait_timeout.

key: string
DEFAULT_QUEUE_KEY: "___DEFAULT_QUEUE_KEY___" = '___DEFAULT_QUEUE_KEY___'

Methods

  • toString(): string
  • Returns string

Generated using TypeDoc