X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;ds=inline;f=docs%2Fclasses%2FWorkerChoiceStrategyContext.html;h=af74f6bbbd032cf66125f016f8d1442903ca246c;hb=b656440d69d06f603b8bc4c23ca4dfe489cbef74;hp=df183a6c07c58196a62503077152d1ba9f0b8469;hpb=b7e141c40bccfd7a4ec0ff98b7829f7d296f048b;p=poolifier.git
diff --git a/docs/classes/WorkerChoiceStrategyContext.html b/docs/classes/WorkerChoiceStrategyContext.html
index df183a6c..af74f6bb 100644
--- a/docs/classes/WorkerChoiceStrategyContext.html
+++ b/docs/classes/WorkerChoiceStrategyContext.html
@@ -1,13 +1,13 @@
-
@@ -42,26 +42,26 @@
- WorkerChoiceStrategyContext
+
Defined in src/pools/selection-strategies/worker-choice-strategy-context.ts:27
- Index
+ Index
Constructors
-constructor
+
Properties
-opts
+
Methods
-execute
+
execute
getStrategyPolicy
getTaskStatisticsRequirements
remove
@@ -72,7 +72,7 @@
Constructors
-constructor
+constructor
- new WorkerChoiceStrategyContext<Worker, Data, Response>(pool, workerChoiceStrategy?, opts?): WorkerChoiceStrategyContext<Worker, Data, Response>
-
@@ -93,19 +93,22 @@
-
pool: IPool<Worker, Data, Response>
+
+
workerChoiceStrategy: "ROUND_ROBIN" | "LEAST_USED" | "LEAST_BUSY" | "LEAST_ELU" | "FAIR_SHARE" | "WEIGHTED_ROUND_ROBIN" | "INTERLEAVED_WEIGHTED_ROUND_ROBIN" = WorkerChoiceStrategies.ROUND_ROBIN
+
+
+
+
+
Defined in src/pools/selection-strategies/worker-choice-strategy-context.ts:49
+
Defined in src/pools/selection-strategies/worker-choice-strategy-context.ts:52
Private
retriesCount
retriesCount: number = 0
@@ -123,12 +126,12 @@
+
Defined in src/pools/selection-strategies/worker-choice-strategy-context.ts:40
Private
Readonly
workerChoiceStrategies
workerChoiceStrategies: Map<"ROUND_ROBIN" | "LEAST_USED" | "LEAST_BUSY" | "LEAST_ELU" | "FAIR_SHARE" | "WEIGHTED_ROUND_ROBIN" | "INTERLEAVED_WEIGHTED_ROUND_ROBIN", IWorkerChoiceStrategy>
+
Defined in src/pools/selection-strategies/worker-choice-strategy-context.ts:32
Private
workerChoiceStrategy
workerChoiceStrategy: "ROUND_ROBIN" | "LEAST_USED" | "LEAST_BUSY" | "LEAST_ELU" | "FAIR_SHARE" | "WEIGHTED_ROUND_ROBIN" | "INTERLEAVED_WEIGHTED_ROUND_ROBIN" = WorkerChoiceStrategies.ROUND_ROBIN
@@ -136,7 +139,7 @@
The pool instance.
-