X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=docs%2Fclasses%2FWorkerChoiceStrategyContext.html;h=0ee5e696aa35f21abe3105a014d768fdb3f7997c;hb=660689f017615c233020793967822c31975e5aa0;hp=d19dcf6cf5ade6f01c52e672095b14daf892347b;hpb=7d3ed70ed3ebb6a3656041db3c6ea23a1f354616;p=poolifier.git diff --git a/docs/classes/WorkerChoiceStrategyContext.html b/docs/classes/WorkerChoiceStrategyContext.html index d19dcf6c..0ee5e696 100644 --- a/docs/classes/WorkerChoiceStrategyContext.html +++ b/docs/classes/WorkerChoiceStrategyContext.html @@ -1,13 +1,13 @@ -WorkerChoiceStrategyContext | poolifier
+WorkerChoiceStrategyContext | poolifier - v2.6.45
-
+
  • The search index is not available
  • poolifier - v2.6.45 +
    @@ -17,148 +17,212 @@

    Class WorkerChoiceStrategyContext<Worker, Data, Response>

    The worker choice strategy context.

    -
    -
    +
    +
    +

    Type Parameters

    -
    +
  • -

    Data = unknown

    -

    Type of data sent to the worker. This can only be serializable data.

    -
  • +

    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 serializable data.

    -
  • +

    Response = unknown

    +

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

    +
    +

    Hierarchy

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

    Constructors

    -
    - - -

    Returns WorkerChoiceStrategyContext<Worker, Data, Response>

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

    -
    - -
    workerChoiceStrategies: Map<"ROUND_ROBIN" | "LESS_USED" | "LESS_BUSY" | "FAIR_SHARE" | "WEIGHTED_ROUND_ROBIN", IWorkerChoiceStrategy>
    +
    + +
    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.

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

    -
    - -
    +
    + +
    +
    + +
    -
    - -
    +
    + +
    +
    + + +

    Returns void

    +
    -
    - -
    +
    + + +

    Returns void

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

    Theme

    -

    On This Page

    +

    On This Page

    +
  • constructor
  • +
  • opts
  • +
  • retriesCount
  • +
  • workerChoiceStrategies
  • +
  • workerChoiceStrategy
  • +
  • execute
  • +
  • getStrategyPolicy
  • +
  • getTaskStatisticsRequirements
  • +
  • remove
  • +
  • setOptions
  • +
  • setWorkerChoiceStrategy
  • +
  • update
  • +
    -

    Generated using TypeDoc

    -
    \ No newline at end of file +

    Generated using TypeDoc

    +
    \ No newline at end of file