X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;ds=inline;f=docs%2Fclasses%2FWorkerChoiceStrategyContext.html;h=daf43a7547f44d61e7310af4932b1ac50ffe645e;hb=297f3bbe14ff67d6e7bf27bd9dd4088170151ce5;hp=7347696d5e4aa5fcfea15e5823c218962811ce86;hpb=67a6f2fa4500ca41675aaec32730093d312a351d;p=poolifier.git
diff --git a/docs/classes/WorkerChoiceStrategyContext.html b/docs/classes/WorkerChoiceStrategyContext.html
index 7347696d..daf43a75 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,121 +46,118 @@
Constructors
-constructor
+
Properties
-workerChoiceStrategies
-
workerChoiceStrategy
+
Constructors
-
+
constructor
-
-- 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>
+
+- 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>
-
-
workerChoiceStrategy: "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
-
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.