X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=docs%2Fclasses%2FWorkerChoiceStrategiesContext.html;h=92dff5e9000f5fc78bb8e97ae0529f631c1278f0;hb=8f279193e13c76ab6a8f795e4bb0b591e8c2b4af;hp=750f52ae19be2b72e2ce7170477730ee78afe63b;hpb=67c6a853287d5c2df8ab115905b714e644333802;p=poolifier.git diff --git a/docs/classes/WorkerChoiceStrategiesContext.html b/docs/classes/WorkerChoiceStrategiesContext.html index 750f52ae..92dff5e9 100644 --- a/docs/classes/WorkerChoiceStrategiesContext.html +++ b/docs/classes/WorkerChoiceStrategiesContext.html @@ -1,8 +1,8 @@ -
The worker choice strategies context.
+- Preparing search index...
- The search index is not available
poolifier - v4.0.13Class WorkerChoiceStrategiesContext<Worker, Data, Response>
The worker choice strategies context.
Type Parameters
Type of worker.
Type of data sent to the worker. This can only be structured-cloneable data.
Type of execution response. This can only be structured-cloneable data.
-Index
Constructors
Index
Constructors
Properties
Type Parameters
Parameters
The pool instance.
The worker choice strategies.
Optional
opts: WorkerChoiceStrategyOptionsThe worker choice strategy options.
-Returns WorkerChoiceStrategiesContext<Worker, Data, Response>
Default Value
Returns WorkerChoiceStrategiesContext<Worker, Data, Response>
Default Value
-Properties
Private
defaultThe default worker choice strategy in the context.
-Private
Readonly
poolThe pool instance.
-Private
Readonly
retriesThe maximum number of worker choice strategies execution retries.
-retries Count
The number of worker choice strategies execution retries.
-Private
Readonly
workerThe worker choice strategies registered in the context.
-Private
workerThe active worker choice strategies in the context policy.
-Private
workerThe active worker choice strategies in the context task statistics requirements.
-Methods
Private
addAdds a worker choice strategy to the context.
+Properties
Private
defaultThe default worker choice strategy in the context.
+Private
Readonly
poolThe pool instance.
+Private
Readonly
retriesThe maximum number of worker choice strategies execution retries.
+retries Count
The number of worker choice strategies execution retries.
+Private
Readonly
workerThe worker choice strategies registered in the context.
+Private
workerThe active worker choice strategies in the context policy.
+Private
workerThe active worker choice strategies in the context task statistics requirements.
+Methods
Private
addAdds a worker choice strategy to the context.
Parameters
The worker choice strategy to add.
Optional
opts: WorkerChoiceStrategyOptionsThe worker choice strategy options.
Returns Map<"ROUND_ROBIN" | "LEAST_USED" | "LEAST_BUSY" | "LEAST_ELU" | "FAIR_SHARE" | "WEIGHTED_ROUND_ROBIN" | "INTERLEAVED_WEIGHTED_ROUND_ROBIN", IWorkerChoiceStrategy>
The worker choice strategies.
-execute
Executes the given worker choice strategy in the context algorithm.
+execute
Executes the given worker choice strategy in the context algorithm.
Parameters
The worker choice strategy algorithm to execute.
Returns number
The key of the worker node.
-Default Value
Settings
Member Visibility
Theme
On This Page