X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=docs%2Fclasses%2FWorkerChoiceStrategyContext.html;h=9bbddac144416fc092323b1fd930d9c2897284e7;hb=2a6631992868d900762f62e4c228dce4e4ee549a;hp=daf43a7547f44d61e7310af4932b1ac50ffe645e;hpb=2c94c3a5da9d6b4a0ac992386907d8a406ee38f7;p=poolifier.git
diff --git a/docs/classes/WorkerChoiceStrategyContext.html b/docs/classes/WorkerChoiceStrategyContext.html
index daf43a75..9bbddac1 100644
--- a/docs/classes/WorkerChoiceStrategyContext.html
+++ b/docs/classes/WorkerChoiceStrategyContext.html
@@ -17,28 +17,32 @@
Class WorkerChoiceStrategyContext<Worker, Data, Response>
+
+
Type Parameters
-
Worker extends IWorker
+
+
-
Data = unknown
-
+
+
-
Response = unknown
-
+
+
Hierarchy
- WorkerChoiceStrategyContext
+Defined in src/pools/selection-strategies/worker-choice-strategy-context.ts:27
@@ -46,28 +50,29 @@
Constructors
-constructor
+
Properties
-workerChoiceStrategies
-
workerChoiceStrategy
+
Constructors
-constructor
+constructor
-- new WorkerChoiceStrategyContext<Worker, Data, Response>(pool, workerChoiceStrategy?, opts?): WorkerChoiceStrategyContext<Worker, Data, Response>
+- new WorkerChoiceStrategyContext<Worker, Data, Response>(pool, workerChoiceStrategy?, opts?): WorkerChoiceStrategyContext<Worker, Data, Response>
-
@@ -75,7 +80,7 @@
Type Parameters
-
Data = unknown
-
@@ -86,60 +91,81 @@
-
pool: IPool<Worker, Data, Response>
+
+
-workerChoiceStrategy: "ROUND_ROBIN" | "LESS_USED" | "LESS_BUSY" | "FAIR_SHARE" | "WEIGHTED_ROUND_ROBIN" = WorkerChoiceStrategies.ROUND_ROBIN
+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:44
-Private
workerChoiceStrategy
-workerChoiceStrategy: "ROUND_ROBIN" | "LESS_USED" | "LESS_BUSY" | "FAIR_SHARE" | "WEIGHTED_ROUND_ROBIN" = WorkerChoiceStrategies.ROUND_ROBIN
+Private
workerChoiceStrategy
+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:46
-setOptions
+setOptions
-- setOptions(opts): void
+- setOptions(opts): void
-
@@ -167,14 +195,16 @@
-
-Returns void
+Defined in src/pools/selection-strategies/worker-choice-strategy-context.ts:198
-setWorkerChoiceStrategy
+setWorkerChoiceStrategy
-- setWorkerChoiceStrategy(workerChoiceStrategy): void
+- setWorkerChoiceStrategy(workerChoiceStrategy): void
-
@@ -182,16 +212,18 @@
Parameters
-
-
workerChoiceStrategy: "ROUND_ROBIN" | "LESS_USED" | "LESS_BUSY" | "FAIR_SHARE" | "WEIGHTED_ROUND_ROBIN"
+workerChoiceStrategy: "ROUND_ROBIN" | "LEAST_USED" | "LEAST_BUSY" | "LEAST_ELU" | "FAIR_SHARE" | "WEIGHTED_ROUND_ROBIN" | "INTERLEAVED_WEIGHTED_ROUND_ROBIN"
-Returns void
+Returns void
+
+Defined in src/pools/selection-strategies/worker-choice-strategy-context.ts:139
-update
+update
-- update(workerNodeKey): boolean
+- update(workerNodeKey): boolean
-
@@ -201,14 +233,15 @@
-
workerNodeKey: number
Returns boolean
true
if the update is successful, false
otherwise.
-
+Defined in src/pools/selection-strategies/worker-choice-strategy-context.ts:153
+AbstractPool
+AbstractWorker
+CircularArray
+ClusterWorker
+DynamicClusterPool
+DynamicThreadPool
+FixedClusterPool
+FixedThreadPool
+PoolEmitter
+Queue
+ThreadWorker
+WorkerChoiceStrategyContext
+ClusterPoolOptions
+EventLoopUtilizationMeasurementStatistics
+IPool
+IWorker
+IWorkerChoiceStrategy
+MeasurementOptions
+MeasurementStatistics
+MeasurementStatisticsRequirements
+MessageValue
+PoolInfo
+PoolOptions
+PromiseResponseWrapper
+StrategyPolicy
+Task
+TaskError
+TaskPerformance
+TaskStatistics
+TaskStatisticsRequirements
+TasksQueueOptions
+ThreadPoolOptions
+WorkerChoiceStrategyOptions
+WorkerInfo
+WorkerNode
+WorkerOptions
+WorkerStatistics
+WorkerUsage
+ErrorHandler
+ExitHandler
+KillBehavior
+Measurement
+MessageHandler
+OnlineHandler
+PoolEvent
+PoolType
+TaskFunctions
+WorkerAsyncFunction
+WorkerChoiceStrategy
+WorkerFunction
+WorkerSyncFunction
+WorkerType
+KillBehaviors
+Measurements
+PoolEvents
+PoolTypes
+WorkerChoiceStrategies
+WorkerTypes
+availableParallelism
The worker choice strategy context.
-