X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=docs%2Fclasses%2FWorkerChoiceStrategyContext.html;h=50a2627fb7b0941698c33f21be0038f16ed31de3;hb=fc027381650624a242a2e7b139976d52c3aa304c;hp=d94f20b1197385af64a8e1cf35c394e481e5b47c;hpb=06fa9e0de6b62965c9dd2fe6023e943f35775026;p=poolifier.git
diff --git a/docs/classes/WorkerChoiceStrategyContext.html b/docs/classes/WorkerChoiceStrategyContext.html
index d94f20b1..50a2627f 100644
--- a/docs/classes/WorkerChoiceStrategyContext.html
+++ b/docs/classes/WorkerChoiceStrategyContext.html
@@ -1,4 +1,4 @@
-
WorkerChoiceStrategyContext | poolifier
+WorkerChoiceStrategyContext | poolifier
@@ -18,19 +18,19 @@
-
+
Type Parameters
-
+
-
-
Worker extends IWorker
+Worker extends IWorker
-
-
Data = unknown
+Data = unknown
-
-
Response = unknown
+Response = unknown
@@ -38,7 +38,7 @@
- WorkerChoiceStrategyContext
+Defined in src/pools/selection-strategies/worker-choice-strategy-context.ts:24
@@ -46,119 +46,137 @@
Constructors
-constructor
+
Properties
-workerChoiceStrategies
-
workerChoiceStrategyType
+
Constructors
-
+
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, workerChoiceStrategy?, opts?): WorkerChoiceStrategyContext<Worker, Data, Response>
-
-
-
-
Data = unknown
+Data = unknown
-
-
Response = unknown
+Response = unknown
Parameters
-
-
pool: IPool<Worker, Data, Response>
+pool: IPool<Worker, Data, Response>
-
-
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
-
-
+
-
+
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
Methods
-
+
execute
-
-- execute(): number
+
+- execute(): number
-
-
Returns number
-
+
-
+
remove
-
-- remove(workerNodeKey: number): boolean
+
+- remove(workerNodeKey): boolean
-
-
Returns void
+Defined in src/pools/selection-strategies/worker-choice-strategy-context.ts:108
+
+Theme
On This Page
+constructor
+workerChoiceStrategies
+workerChoiceStrategy
+execute
+getRequiredStatistics
+remove
+setOptions
+setWorkerChoiceStrategy
+update
+PoolType
+AbstractPool
+AbstractWorker
+CircularArray
+ClusterWorker
+DynamicClusterPool
+DynamicThreadPool
+FixedClusterPool
+FixedThreadPool
+PoolEmitter
+Queue
+ThreadWorker
+WorkerChoiceStrategyContext
+ClusterPoolOptions
+IPool
+IWorker
+IWorkerChoiceStrategy
+MessageValue
+PoolOptions
+PromiseResponseWrapper
+RequiredStatistics
+Task
+TasksQueueOptions
+TasksUsage
+WorkerChoiceStrategyOptions
+WorkerNode
+WorkerOptions
+Draft
+ErrorHandler
+ExitHandler
+KillBehavior
+MessageHandler
+OnlineHandler
+PoolEvent
+TaskFunctions
+ThreadWorkerWithMessageChannel
+WorkerAsyncFunction
+WorkerChoiceStrategy
+WorkerFunction
+WorkerSyncFunction
+KillBehaviors
+PoolEvents
+WorkerChoiceStrategies
\ No newline at end of file
The worker choice strategy context.