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

    Interface IWorkerChoiceStrategy

    +

    Interface IWorkerChoiceStrategyInternal

    Worker choice strategy interface.

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

    Properties

    -
    choose +
    choose remove reset setOptions @@ -43,24 +43,25 @@

    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

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

    Type declaration

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

    Type declaration

    @@ -124,7 +125,7 @@

    Returns void

    +
  • Defined in src/pools/selection-strategies/selection-strategies-types.ts:208
  • strategyPolicy: StrategyPolicy
    @@ -132,7 +133,7 @@
    +
  • Defined in src/pools/selection-strategies/selection-strategies-types.ts:172
  • taskStatisticsRequirements: TaskStatisticsRequirements
    @@ -140,9 +141,9 @@
    +
  • Defined in src/pools/selection-strategies/selection-strategies-types.ts:176
  • - +
    update: ((workerNodeKey) => boolean)

    Type declaration

    @@ -162,20 +163,20 @@
    +
  • Defined in src/pools/selection-strategies/selection-strategies-types.ts:188
  • @@ -190,67 +191,30 @@
  • taskStatisticsRequirements
  • update
  • +
    -

    Generated using TypeDoc

    -
    \ No newline at end of file +

    Generated using TypeDoc

    +
    \ No newline at end of file