X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=docs%2Fclasses%2FWorkerChoiceStrategyContext.html;h=50a2627fb7b0941698c33f21be0038f16ed31de3;hb=fc027381650624a242a2e7b139976d52c3aa304c;hp=8f75212a3fdac537f4b434d15bcc63130bd4d95e;hpb=3bd6a82e43e11294af91bbd19647944ac740169e;p=poolifier.git
diff --git a/docs/classes/WorkerChoiceStrategyContext.html b/docs/classes/WorkerChoiceStrategyContext.html
index 8f75212a..50a2627f 100644
--- a/docs/classes/WorkerChoiceStrategyContext.html
+++ b/docs/classes/WorkerChoiceStrategyContext.html
@@ -18,11 +18,11 @@
Worker choice strategy context constructor. The pool instance. The worker choice strategy. The worker choice strategy options.Type Parameters
-
@@ -60,21 +60,22 @@
remove
set
Constructors
constructor
-
Type Parameters
-Data = unknown
Parameters
-pool: IPool<Worker, Data, Response>
+pool: IPool<Worker, Data, Response>
opts: WorkerChoiceStrategyOptions = DEFAULT_WORKER_CHOICE_STRATEGY_OPTIONS
+opts: WorkerChoiceStrategyOptions = DEFAULT_WORKER_CHOICE_STRATEGY_OPTIONS
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.
Sets the worker choice strategies in the context options.
The worker choice strategy options.
Sets the worker choice strategy to use in the context.
The worker choice strategy context.