Interface IWorkerChoiceStrategy

Worker choice strategy interface.

Hierarchy

  • IWorkerChoiceStrategy

Properties

choose: (() => number)

Type declaration

    • (): number
    • Chooses a worker node in the pool and returns its key.

      Returns number

remove: ((workerNodeKey: number) => boolean)

Type declaration

    • (workerNodeKey: number): boolean
    • Removes a worker node key from strategy internals.

      Parameters

      • workerNodeKey: number

        The worker node key.

      Returns boolean

requiredStatistics: RequiredStatistics

Required tasks usage statistics.

reset: (() => boolean)

Type declaration

    • (): boolean
    • Resets strategy internals (counters, statistics, etc.).

      Returns boolean

setOptions: ((opts: WorkerChoiceStrategyOptions) => void)

Type declaration

Generated using TypeDoc