X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=docs%2Finterfaces%2FIWorkerChoiceStrategy.html;h=1a45baff138cedfc0b6abe9e829e95fb835e66b9;hb=da7631f88ed580377ddba0882eac576bb32832eb;hp=437990330491452ea1c1d7cfbbcbd719bb689e39;hpb=afa30fd0dd5bbc5d305cc30be663966a449efc08;p=poolifier.git diff --git a/docs/interfaces/IWorkerChoiceStrategy.html b/docs/interfaces/IWorkerChoiceStrategy.html index 43799033..1a45baff 100644 --- a/docs/interfaces/IWorkerChoiceStrategy.html +++ b/docs/interfaces/IWorkerChoiceStrategy.html @@ -1,4 +1,4 @@ -IWorkerChoiceStrategy | poolifier
+IWorkerChoiceStrategy | poolifier - v2.6.41
  • Preparing search index...
  • -
  • The search index is not available
poolifier
+
  • The search index is not available
  • poolifier - v2.6.41
    @@ -14,7 +14,7 @@ -

    Interface IWorkerChoiceStrategy

    +

    Interface IWorkerChoiceStrategyInternal

    Worker choice strategy interface.

    @@ -24,7 +24,7 @@
    +
  • Defined in src/pools/selection-strategies/selection-strategies-types.ts:168
  • @@ -36,30 +36,32 @@ remove reset setOptions -taskStatistics +strategyPolicy +taskStatisticsRequirements update

    Properties

    - -
    choose: (() => number)
    + +
    choose: (() => undefined | number)

    Type declaration

      • -
      • (): number
      • +
      • (): undefined | number
      • -

        Chooses a worker node in the pool and returns its key.

        +

        Chooses a worker node in the pool and returns its key. +If the worker node is not eligible, undefined is returned.

        -

        Returns number

        The worker node key.

        +

        Returns undefined | number

        The worker node key or undefined.

    +
  • Defined in src/pools/selection-strategies/selection-strategies-types.ts:195
  • - +
    remove: ((workerNodeKey) => boolean)

    Type declaration

    @@ -76,15 +78,14 @@
  • workerNodeKey: number

    The worker node key.

    -
    -
  • +

    Returns boolean

    true if the worker node key is removed, false otherwise.

    +
  • Defined in src/pools/selection-strategies/selection-strategies-types.ts:202
  • - +
    reset: (() => boolean)

    Type declaration

    @@ -99,9 +100,9 @@
    +
  • Defined in src/pools/selection-strategies/selection-strategies-types.ts:182
  • - +
    setOptions: ((opts) => void)

    Type declaration

    @@ -118,22 +119,29 @@
  • opts: WorkerChoiceStrategyOptions

    The worker choice strategy options.

    -
    -
  • +

    Returns void

    -
    - -
    taskStatistics: TaskStatistics
    -
    +
    + +
    strategyPolicy: StrategyPolicy
    +

    Strategy policy.

    +
    +
    +
    + +
    taskStatisticsRequirements: TaskStatisticsRequirements
    +

    Tasks statistics requirements.

    +
  • Defined in src/pools/selection-strategies/selection-strategies-types.ts:176
  • - +
    update: ((workerNodeKey) => boolean)

    Type declaration

    @@ -153,7 +161,7 @@
    +
  • Defined in src/pools/selection-strategies/selection-strategies-types.ts:188
  • +
  • WorkerTypes
  • +
  • availableParallelism
  • -

    Generated using TypeDoc

    +

    Generated using TypeDoc

    \ No newline at end of file