X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;ds=sidebyside;f=docs%2Fclasses%2FWorkerChoiceStrategyContext.html;h=de5db03acff263a36a519dcd3ac9e33f055248bd;hb=b39af64a9d234717930711a7f04959b97e8acd33;hp=920f2d1d3482463e14ad6a196c6093f061e4c0dd;hpb=4f487526a63c873d168386250b40ad8103c5a4d8;p=poolifier.git diff --git a/docs/classes/WorkerChoiceStrategyContext.html b/docs/classes/WorkerChoiceStrategyContext.html index 920f2d1d..de5db03a 100644 --- a/docs/classes/WorkerChoiceStrategyContext.html +++ b/docs/classes/WorkerChoiceStrategyContext.html @@ -1,4 +1,4 @@ -
Private
optsThe worker choice strategy options.
+Private
retriesThe number of times the worker choice strategy in the context has been retried.
+Private
Readonly
workerPrivate
workerThe worker choice strategy.
Executes the worker choice strategy algorithm in the context.
+Executes the worker choice strategy in the context algorithm.
The key of the worker node.
https://nodejs.org/api/errors.html#class-error If the worker node key is null or undefined.
+https://nodejs.org/api/errors.html#class-error If after configured retries the worker node key is null or undefined .
Gets the strategy policy in the context.
+The strategy policy.
+ +Gets the worker choice strategy task statistics in the context.
+Gets the worker choice strategy in the context task statistics requirements.
The task statistics.
+The task statistics requirements.
The key of the worker node.
-The worker node key.
+true
if the removal is successful, false
otherwise.
The worker choice strategy options.
-The worker choice strategy to set.
-Updates the worker node key in the worker choice strategy internals in the context.
+Updates the worker node key in the worker choice strategy in the context internals.
Generated using TypeDoc
Generated using TypeDoc
\ No newline at end of file
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.
@@ -54,13 +54,16 @@
Properties
-Methods
Type Parameters
Worker extends IWorker<Worker>
Worker extends IWorker
Data = unknown
pool: IPool<Worker, Data, Response>
The pool instance.
-workerChoiceStrategy: "ROUND_ROBIN" | "LEAST_USED" | "LEAST_BUSY" | "FAIR_SHARE" | "WEIGHTED_ROUND_ROBIN" | "INTERLEAVED_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.
-opts: WorkerChoiceStrategyOptions = DEFAULT_WORKER_CHOICE_STRATEGY_OPTIONS
The worker choice strategy options.
-