X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;ds=sidebyside;f=docs%2Fclasses%2FWorkerChoiceStrategyContext.html;h=9cdf6715e534514d16cd3a3e93c0d2efd7a1be93;hb=15d6dfaf877ec6a99e2bde48cb3c8a9e8671c075;hp=1447c0edf7cf152f512a697a4b0f8796f7200a77;hpb=dea288f11483ea6c15807b20e4c621483c7fa5af;p=poolifier.git
diff --git a/docs/classes/WorkerChoiceStrategyContext.html b/docs/classes/WorkerChoiceStrategyContext.html
index 1447c0ed..9cdf6715 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:25
@@ -46,28 +50,28 @@
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>
-
@@ -86,62 +90,69 @@
-
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" | "FAIR_SHARE" | "WEIGHTED_ROUND_ROBIN" | "INTERLEAVED_WEIGHTED_ROUND_ROBIN" = WorkerChoiceStrategies.ROUND_ROBIN
+
+
-
+Defined in src/pools/selection-strategies/worker-choice-strategy-context.ts:42
-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" | "FAIR_SHARE" | "WEIGHTED_ROUND_ROBIN" | "INTERLEAVED_WEIGHTED_ROUND_ROBIN" = WorkerChoiceStrategies.ROUND_ROBIN
+Defined in src/pools/selection-strategies/worker-choice-strategy-context.ts:44
-getRequiredStatistics
+getRequiredStatistics
+Defined in src/pools/selection-strategies/worker-choice-strategy-context.ts:104
-remove
+remove
-- remove(workerNodeKey): boolean
+- remove(workerNodeKey): boolean
-
@@ -151,15 +162,17 @@
-
workerNodeKey: number
+
+
Returns boolean
true
if the removal is successful, false
otherwise.
-
+Defined in src/pools/selection-strategies/worker-choice-strategy-context.ts:163
-setOptions
+setOptions
-- setOptions(opts): void
+- setOptions(opts): void
-
@@ -169,14 +182,16 @@
-
-Returns void
+Defined in src/pools/selection-strategies/worker-choice-strategy-context.ts:176
-setWorkerChoiceStrategy
+setWorkerChoiceStrategy
-- setWorkerChoiceStrategy(workerChoiceStrategy): void
+- setWorkerChoiceStrategy(workerChoiceStrategy): void
-
@@ -184,16 +199,18 @@
Parameters
-
-
workerChoiceStrategy: "ROUND_ROBIN" | "LESS_USED" | "LESS_BUSY" | "FAIR_SHARE" | "WEIGHTED_ROUND_ROBIN"
+workerChoiceStrategy: "ROUND_ROBIN" | "LEAST_USED" | "LEAST_BUSY" | "FAIR_SHARE" | "WEIGHTED_ROUND_ROBIN" | "INTERLEAVED_WEIGHTED_ROUND_ROBIN"
-Returns void
+Returns void
+
+Defined in src/pools/selection-strategies/worker-choice-strategy-context.ts:117
-update
+update
-- update(workerNodeKey): boolean
+- update(workerNodeKey): boolean
-
@@ -203,14 +220,15 @@
-
workerNodeKey: number
Returns boolean
true
if the update is successful, false
otherwise.
-
+Defined in src/pools/selection-strategies/worker-choice-strategy-context.ts:131
+AbstractPool
+AbstractWorker
+CircularArray
+ClusterWorker
+DynamicClusterPool
+DynamicThreadPool
+FixedClusterPool
+FixedThreadPool
+PoolEmitter
+Queue
+ThreadWorker
+WorkerChoiceStrategyContext
+ClusterPoolOptions
+IPool
+IWorker
+IWorkerChoiceStrategy
+MessageValue
+PoolInfo
+PoolOptions
+PromiseResponseWrapper
+RequiredStatistics
+Task
+TasksQueueOptions
+TasksUsage
+WorkerChoiceStrategyOptions
+WorkerNode
+WorkerOptions
+Draft
+ErrorHandler
+ExitHandler
+KillBehavior
+MessageHandler
+OnlineHandler
+PoolEvent
+PoolType
+TaskFunctions
+ThreadWorkerWithMessageChannel
+WorkerAsyncFunction
+WorkerChoiceStrategy
+WorkerFunction
+WorkerSyncFunction
+WorkerType
+KillBehaviors
+PoolEvents
+PoolTypes
+WorkerChoiceStrategies
+WorkerTypes
The worker choice strategy context.
-