X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=docs%2Fclasses%2FWorkerChoiceStrategyContext.html;h=4650bea9dff440b981461fd35cdc323a0820812e;hb=dea903a811a58acdf93f11379b347bfd8088e970;hp=897083c575df4eaa0ccb7bea4dccae30a4200f1c;hpb=8d1797ad15cb2d87ac3c9904ce6df3db45c0c742;p=poolifier.git
diff --git a/docs/classes/WorkerChoiceStrategyContext.html b/docs/classes/WorkerChoiceStrategyContext.html
index 897083c5..4650bea9 100644
--- a/docs/classes/WorkerChoiceStrategyContext.html
+++ b/docs/classes/WorkerChoiceStrategyContext.html
@@ -18,9 +18,9 @@
Type of worker. Worker choice strategy context constructor. The pool instance. The worker choice strategy.Type Parameters
-
+
Worker extends IWorker
+
@@ -60,6 +60,7 @@
remove
set
Constructors
@@ -70,9 +71,9 @@
Type Parameters
-
+
Worker extends IWorker<Worker>
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
Returns WorkerChoiceStrategyContext<Worker, Data, Response>
Private
Readonly
workerPrivate
workerThe worker choice strategy.
Executes the worker choice strategy algorithm in the context.
-The key of the worker node.
+https://nodejs.org/api/errors.html#class-error If the worker node key is null or undefined.
The key of the worker node.
+Gets the worker choice strategy in the context required statistics.
- -The required statistics.
The required statistics.
+Removes a worker node key from the worker choice strategy in the context.
- -true
if the removal is successful, false
otherwise.
Removes the worker node key from the worker choice strategy in the context.
The key of the worker node.
true
if the removal is successful, false
otherwise.
The worker choice strategy to set.
Generated using TypeDoc
The worker choice strategy context.