X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;ds=sidebyside;f=docs%2Fclasses%2FWorkerChoiceStrategyContext.html;h=1ee1667d224131385c2f1fc49a0d26dc1861c2fa;hb=ef41a6e6f04e66c9732334e673758b2f4e4b0730;hp=1095938f0cf16fff7267d0de9dfca4690b4b296c;hpb=e4b9c7f546318de7603566b141fd0e2d0118c794;p=poolifier.git
diff --git a/docs/classes/WorkerChoiceStrategyContext.html b/docs/classes/WorkerChoiceStrategyContext.html
index 1095938f..1ee1667d 100644
--- a/docs/classes/WorkerChoiceStrategyContext.html
+++ b/docs/classes/WorkerChoiceStrategyContext.html
@@ -31,14 +31,14 @@
Response = unknown
-
@@ -65,7 +66,7 @@
constructor
-- new WorkerChoiceStrategyContext<Worker, Data, Response>(pool: IPool<Worker, Data, Response>, workerChoiceStrategyType?: "ROUND_ROBIN" | "LESS_USED" | "LESS_BUSY" | "FAIR_SHARE" | "WEIGHTED_ROUND_ROBIN", opts?: WorkerChoiceStrategyOptions): WorkerChoiceStrategyContext<Worker, Data, Response>
+- new WorkerChoiceStrategyContext<Worker, Data, Response>(pool: IPool<Worker, Data, Response>, workerChoiceStrategy?: "ROUND_ROBIN" | "LESS_USED" | "LESS_BUSY" | "FAIR_SHARE" | "WEIGHTED_ROUND_ROBIN", opts?: WorkerChoiceStrategyOptions): WorkerChoiceStrategyContext<Worker, Data, Response>
-
@@ -86,7 +87,7 @@
-
-
workerChoiceStrategyType: "ROUND_ROBIN" | "LESS_USED" | "LESS_BUSY" | "FAIR_SHARE" | "WEIGHTED_ROUND_ROBIN" = WorkerChoiceStrategies.ROUND_ROBIN
+workerChoiceStrategy: "ROUND_ROBIN" | "LESS_USED" | "LESS_BUSY" | "FAIR_SHARE" | "WEIGHTED_ROUND_ROBIN" = WorkerChoiceStrategies.ROUND_ROBIN
-
@@ -95,21 +96,21 @@
+Defined in src/pools/selection-strategies/worker-choice-strategy-context.ts:41
Properties
Private
Readonly
workerChoiceStrategies
worker
Choice
Strategies
: Map<"ROUND_ROBIN" | "LESS_USED" | "LESS_BUSY" | "FAIR_SHARE" | "WEIGHTED_ROUND_ROBIN", IWorkerChoiceStrategy>
-
+
+Private
workerChoiceStrategy
+workerChoiceStrategy: "ROUND_ROBIN" | "LESS_USED" | "LESS_BUSY" | "FAIR_SHARE" | "WEIGHTED_ROUND_ROBIN" = WorkerChoiceStrategies.ROUND_ROBIN
+Defined in src/pools/selection-strategies/worker-choice-strategy-context.ts:43
getRequiredStatistics
-- getRequiredStatistics(): RequiredStatistics
+- getRequiredStatistics(): RequiredStatistics
-
-
Returns RequiredStatistics
+Defined in src/pools/selection-strategies/worker-choice-strategy-context.ts:82
+Defined in src/pools/selection-strategies/worker-choice-strategy-context.ts:123
+
setWorkerChoiceStrategy
Returns void
+Defined in src/pools/selection-strategies/worker-choice-strategy-context.ts:95
Type of response of execution. This can only be serializable data.
+Type of execution response. This can only be serializable data.
Hierarchy
@@ -51,13 +51,14 @@
worker Choice Strategies
-worker Choice Strategy Type
+worker Choice Strategy
execute
get Required Statistics
remove
+set Options
set Worker Choice Strategy
Properties
Methods