X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=docs%2Fclasses%2FWorkerChoiceStrategyContext.html;h=efb3d1602d4803fff0f56eddc8927153cd3dbcd3;hb=8d98e603c79d8d00b2b6a33e5f732701a7466234;hp=8371a7b94139d6020d84600c9ffdda3d1d861b6d;hpb=938d9c678aa8e70e5642feffb90604cf25c993fe;p=poolifier.git diff --git a/docs/classes/WorkerChoiceStrategyContext.html b/docs/classes/WorkerChoiceStrategyContext.html index 8371a7b9..efb3d160 100644 --- a/docs/classes/WorkerChoiceStrategyContext.html +++ b/docs/classes/WorkerChoiceStrategyContext.html @@ -18,9 +18,9 @@

The worker choice strategy context.

-
+

Type Parameters

-
+
  • Defined in src/pools/selection-strategies/worker-choice-strategy-context.ts:25
  • @@ -60,6 +60,7 @@ remove setOptions setWorkerChoiceStrategy +update

    Constructors

    @@ -70,9 +71,9 @@
  • Worker choice strategy context constructor.

    -
    +

    Type Parameters

    -
      +
      • Worker extends IWorker<Worker>

      • @@ -87,7 +88,7 @@

        The pool instance.

      • -
        workerChoiceStrategy: "ROUND_ROBIN" | "LESS_USED" | "LESS_BUSY" | "FAIR_SHARE" | "WEIGHTED_ROUND_ROBIN" = WorkerChoiceStrategies.ROUND_ROBIN
        +
        workerChoiceStrategy: "ROUND_ROBIN" | "LEAST_USED" | "LEAST_BUSY" | "FAIR_SHARE" | "WEIGHTED_ROUND_ROBIN" | "INTERLEAVED_WEIGHTED_ROUND_ROBIN" = WorkerChoiceStrategies.ROUND_ROBIN

        The worker choice strategy.

      • @@ -96,21 +97,21 @@

      Returns WorkerChoiceStrategyContext<Worker, Data, Response>

    +
  • Defined in src/pools/selection-strategies/worker-choice-strategy-context.ts:42
  • Properties

    -
    workerChoiceStrategies: Map<"ROUND_ROBIN" | "LESS_USED" | "LESS_BUSY" | "FAIR_SHARE" | "WEIGHTED_ROUND_ROBIN", IWorkerChoiceStrategy>
    +
  • Defined in src/pools/selection-strategies/worker-choice-strategy-context.ts:30
  • -
    workerChoiceStrategy: "ROUND_ROBIN" | "LESS_USED" | "LESS_BUSY" | "FAIR_SHARE" | "WEIGHTED_ROUND_ROBIN" = WorkerChoiceStrategies.ROUND_ROBIN
    +
    workerChoiceStrategy: "ROUND_ROBIN" | "LEAST_USED" | "LEAST_BUSY" | "FAIR_SHARE" | "WEIGHTED_ROUND_ROBIN" | "INTERLEAVED_WEIGHTED_ROUND_ROBIN" = WorkerChoiceStrategies.ROUND_ROBIN

    The worker choice strategy.

    +
  • Defined in src/pools/selection-strategies/worker-choice-strategy-context.ts:44
  • Methods

    @@ -120,31 +121,29 @@
  • Executes the worker choice strategy algorithm in the context.

    -

    Returns

    The key of the worker node.

    +

    Throws

    https://nodejs.org/api/errors.html#class-error If the worker node key is null or undefined.

    -

    Returns number

  • +
  • Defined in src/pools/selection-strategies/worker-choice-strategy-context.ts:145
  • +
  • Defined in src/pools/selection-strategies/worker-choice-strategy-context.ts:104
  • -

    Returns boolean

    +
  • Defined in src/pools/selection-strategies/worker-choice-strategy-context.ts:163
  • Returns void

    +
  • Defined in src/pools/selection-strategies/worker-choice-strategy-context.ts:176
  • +
  • Defined in src/pools/selection-strategies/worker-choice-strategy-context.ts:117
  • +
    + +
    +
  • setWorkerChoiceStrategy
  • +
  • update
  • +
  • PoolTypes
  • +
  • WorkerChoiceStrategies
  • +
  • WorkerTypes
  • Generated using TypeDoc

    \ No newline at end of file