X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=docs%2Fclasses%2FWorkerChoiceStrategyContext.html;h=49cdb8401295adc980011a596805b25f9e4d8535;hb=410724041bab556be1385c56f9a32e5030f6f2cf;hp=daf43a7547f44d61e7310af4932b1ac50ffe645e;hpb=2c94c3a5da9d6b4a0ac992386907d8a406ee38f7;p=poolifier.git diff --git a/docs/classes/WorkerChoiceStrategyContext.html b/docs/classes/WorkerChoiceStrategyContext.html index daf43a75..49cdb840 100644 --- a/docs/classes/WorkerChoiceStrategyContext.html +++ b/docs/classes/WorkerChoiceStrategyContext.html @@ -1,13 +1,13 @@ -WorkerChoiceStrategyContext | poolifier
+WorkerChoiceStrategyContext | poolifier - v2.7.3
-
+
  • The search index is not available
  • poolifier - v2.7.3 +
    @@ -17,57 +17,64 @@

    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.

    -
  • +

    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.

    -
  • +

    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

    +
    + +
    opts: WorkerChoiceStrategyOptions = DEFAULT_WORKER_CHOICE_STRATEGY_OPTIONS
    +

    The worker choice strategy options.

    +
    +
    +
    + +
    retriesCount: number = 0
    +

    The number of times the worker choice strategy in the context has been retried.

    +
    +
    - -
    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:32
  • - -
    workerChoiceStrategy: "ROUND_ROBIN" | "LESS_USED" | "LESS_BUSY" | "FAIR_SHARE" | "WEIGHTED_ROUND_ROBIN" = WorkerChoiceStrategies.ROUND_ROBIN
    + +
    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

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

    Returns boolean

    true if the removal is successful, false otherwise.

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

    Returns void

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

    Returns void

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

    Returns boolean

    true if the update is successful, false otherwise.

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

    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