X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=docs%2Finterfaces%2FIWorkerChoiceStrategy.html;h=fd9546492caa07cefb74dcb1ac94ffb6b9fbb75f;hb=76a3a76becd6ac41efb3271c708431a666828c30;hp=437990330491452ea1c1d7cfbbcbd719bb689e39;hpb=afa30fd0dd5bbc5d305cc30be663966a449efc08;p=poolifier.git diff --git a/docs/interfaces/IWorkerChoiceStrategy.html b/docs/interfaces/IWorkerChoiceStrategy.html index 43799033..fd954649 100644 --- a/docs/interfaces/IWorkerChoiceStrategy.html +++ b/docs/interfaces/IWorkerChoiceStrategy.html @@ -1,20 +1,20 @@ -IWorkerChoiceStrategy | poolifier
+IWorkerChoiceStrategy | poolifier - v2.7.1
-
+
  • The search index is not available
  • poolifier - v2.7.1 +
    -

    Interface IWorkerChoiceStrategy

    +

    Interface IWorkerChoiceStrategyInternal

    Worker choice strategy interface.

    @@ -24,42 +24,44 @@
    +
  • Defined in src/pools/selection-strategies/selection-strategies-types.ts:168
  • - +

    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

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

    Type declaration

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

    Type declaration

    @@ -123,17 +125,25 @@

    Returns void

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

    Strategy policy.

    +
  • Defined in src/pools/selection-strategies/selection-strategies-types.ts:172
  • +
    + +
    taskStatisticsRequirements: TaskStatisticsRequirements
    +

    Tasks statistics requirements.

    +
    +
    - +
    update: ((workerNodeKey) => boolean)

    Type declaration

    @@ -153,20 +163,20 @@
    +
  • Defined in src/pools/selection-strategies/selection-strategies-types.ts:188
  • @@ -177,58 +187,34 @@
  • remove
  • reset
  • setOptions
  • -
  • taskStatistics
  • +
  • strategyPolicy
  • +
  • taskStatisticsRequirements
  • update
  • +
    -

    Generated using TypeDoc

    -
    \ No newline at end of file +

    Generated using TypeDoc

    +
    \ No newline at end of file