X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=docs%2Fclasses%2FWorkerChoiceStrategyContext.html;h=e7bd81a84f702e6cede290474fb6f0525fd9dfb4;hb=c5eb9fdabdf2e40aaa3cab44faf6ee67c4cde4d6;hp=6db60cef9654cc7afcbf0f5006e148758e626072;hpb=2ec36b024551bb9f0ea4851d68958ff1866a50f3;p=poolifier.git diff --git a/docs/classes/WorkerChoiceStrategyContext.html b/docs/classes/WorkerChoiceStrategyContext.html index 6db60cef..e7bd81a8 100644 --- a/docs/classes/WorkerChoiceStrategyContext.html +++ b/docs/classes/WorkerChoiceStrategyContext.html @@ -1,46 +1,46 @@ -WorkerChoiceStrategyContext | poolifier - v3.1.20

Class WorkerChoiceStrategyContext<Worker, Data, Response>

The worker choice strategy context.

-

Type Parameters

  • Worker extends IWorker

    Type of worker.

    -
  • Data = unknown

    Type of data sent to the worker. This can only be structured-cloneable data.

    -
  • Response = unknown

    Type of execution response. This can only be structured-cloneable data.

    -

Constructors

Properties

retries: number

The maximum number of worker choice strategy execution retries.

-
retriesCount: number

The number of worker choice strategy execution retries.

-
workerChoiceStrategies: Map<"ROUND_ROBIN" | "LEAST_USED" | "LEAST_BUSY" | "LEAST_ELU" | "FAIR_SHARE" | "WEIGHTED_ROUND_ROBIN" | "INTERLEAVED_WEIGHTED_ROUND_ROBIN", IWorkerChoiceStrategy>

The worker choice strategy instances registered in the context.

-
workerChoiceStrategy: "ROUND_ROBIN" | "LEAST_USED" | "LEAST_BUSY" | "LEAST_ELU" | "FAIR_SHARE" | "WEIGHTED_ROUND_ROBIN" | "INTERLEAVED_WEIGHTED_ROUND_ROBIN" = WorkerChoiceStrategies.ROUND_ROBIN

The worker choice strategy.

-

Methods

  • Sets the worker choice strategy to use in the context.

    +

    Parameters

    • workerChoiceStrategy: "ROUND_ROBIN" | "LEAST_USED" | "LEAST_BUSY" | "LEAST_ELU" | "FAIR_SHARE" | "WEIGHTED_ROUND_ROBIN" | "INTERLEAVED_WEIGHTED_ROUND_ROBIN"

      The worker choice strategy to set.

      +

    Returns void

Generated using TypeDoc

\ No newline at end of file