X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;ds=sidebyside;f=docs%2Fclasses%2FAbstractPool.html;h=3e8972e96258662bea8323a7764dbc3ab11fac57;hb=938d9c678aa8e70e5642feffb90604cf25c993fe;hp=735e6ebb63b2934604953bf998bd9227ea798b6d;hpb=8d1797ad15cb2d87ac3c9904ce6df3db45c0c742;p=poolifier.git
diff --git a/docs/classes/AbstractPool.html b/docs/classes/AbstractPool.html
index 735e6ebb..3e8972e9 100644
--- a/docs/classes/AbstractPool.html
+++ b/docs/classes/AbstractPool.html
@@ -45,7 +45,7 @@
- IPool<Worker, Data, Response>
+Defined in src/pools/abstract-pool.ts:33
+Defined in src/pools/abstract-pool.ts:75
Readonly
filePath
filePath: string
+Defined in src/pools/abstract-pool.ts:77
Readonly
numberOfWorkers
numberOfWorkers: number
+Defined in src/pools/abstract-pool.ts:76
+Defined in src/pools/abstract-pool.ts:78
Protected
promiseResponseMap
@@ -199,7 +198,7 @@
When we receive a message from the worker, we get a map entry with the promise resolve/reject bound to the message id.
+Defined in src/pools/abstract-pool.ts:52
Protected
workerChoiceStrategyContext
@@ -207,7 +206,7 @@
Default to a round robin algorithm.
+Defined in src/pools/abstract-pool.ts:62
Readonly
workerNodes
@@ -215,7 +214,7 @@
+Defined in src/pools/abstract-pool.ts:39
Protected
Abstract
full
@@ -239,7 +238,7 @@
Returns boolean
+Defined in src/pools/abstract-pool.ts:289
Private
numberOfQueuedTasks
@@ -249,7 +248,7 @@
Returns number
+Defined in src/pools/abstract-pool.ts:195
Private
numberOfRunningTasks
@@ -259,7 +258,7 @@
Returns number
+Defined in src/pools/abstract-pool.ts:185
+Defined in src/pools/abstract-pool.ts:180
Protected
Abstract
afterWorkerSetup
@@ -313,7 +312,7 @@ Can be overridden.
Returns void
+Defined in src/pools/abstract-pool.ts:474
Protected
beforeTaskExecutionHook
@@ -331,7 +330,7 @@ Can be overridden.
Returns void
+Defined in src/pools/abstract-pool.ts:375
Private
buildTasksQueueOptions
@@ -344,7 +343,7 @@ Can be overridden.
+Defined in src/pools/abstract-pool.ts:276
Private
checkAndEmitEvents
@@ -352,7 +351,7 @@ Can be overridden.
-
Returns void
+Defined in src/pools/abstract-pool.ts:532
Private
checkFilePath
@@ -365,7 +364,7 @@ Can be overridden.
filePath: string
Returns void
+Defined in src/pools/abstract-pool.ts:112
Private
checkNumberOfWorkers
@@ -378,7 +377,7 @@ Can be overridden.
numberOfWorkers: number
Returns void
+Defined in src/pools/abstract-pool.ts:121
Private
checkPoolOptions
@@ -391,7 +390,7 @@ Can be overridden.
Returns void
+Defined in src/pools/abstract-pool.ts:139
Private
checkValidTasksQueueOptions
@@ -404,7 +403,7 @@ Can be overridden.
Returns void
+Defined in src/pools/abstract-pool.ts:167
Private
checkValidWorkerChoiceStrategy
@@ -417,7 +416,7 @@ Can be overridden.
workerChoiceStrategy: "ROUND_ROBIN" | "LESS_USED" | "LESS_BUSY" | "FAIR_SHARE" | "WEIGHTED_ROUND_ROBIN"
Returns void
+Defined in src/pools/abstract-pool.ts:157
Protected
chooseWorkerNode
@@ -430,7 +429,7 @@ Can be overridden.
Returns [number, WorkerNode<Worker, Data>]
+Defined in src/pools/abstract-pool.ts:419
Protected
createAndSetupWorker
@@ -442,7 +441,7 @@ Can be overridden.
Returns Worker
+Defined in src/pools/abstract-pool.ts:481
Protected
Abstract
createWorker
@@ -452,7 +451,7 @@ Can be overridden.
Returns Worker
+Defined in src/pools/abstract-pool.ts:465
Private
dequeueTask
@@ -465,7 +464,7 @@ Can be overridden.
workerNodeKey: number
Returns undefined | Task<Data>
+Defined in src/pools/abstract-pool.ts:634
+Defined in src/pools/abstract-pool.ts:338
Protected
Abstract
destroyWorker
@@ -493,7 +492,7 @@ Can be overridden.
Returns void | Promise<void>
+Defined in src/pools/abstract-pool.ts:352
+Defined in src/pools/abstract-pool.ts:254
Private
enqueueTask
@@ -530,7 +529,7 @@ Can be overridden.
task: Task<Data>
Returns number
+Defined in src/pools/abstract-pool.ts:630
+Defined in src/pools/abstract-pool.ts:307
Private
executeTask
@@ -565,22 +564,7 @@ Can be overridden.
task: Task<Data>
Returns void
-
-findFreeWorkerNodeKey
-
-- findFreeWorkerNodeKey(): number
--
-
-
Returns number
+Defined in src/pools/abstract-pool.ts:625
Private
flushTasksQueue
@@ -593,7 +577,7 @@ Can be overridden.
workerNodeKey: number
Returns void
+Defined in src/pools/abstract-pool.ts:642
Private
flushTasksQueueByWorker
@@ -606,7 +590,7 @@ Can be overridden.
worker: Worker
Returns void
+Defined in src/pools/abstract-pool.ts:650
Private
flushTasksQueues
@@ -614,7 +598,7 @@ Can be overridden.
-
Returns void
+Defined in src/pools/abstract-pool.ts:655
Private
getWorkerNodeKey
@@ -633,7 +617,7 @@ Can be overridden.
Returns number
+Defined in src/pools/abstract-pool.ts:211
Private
getWorkerTasksUsage
@@ -654,7 +638,7 @@ Can be overridden.
+Defined in src/pools/abstract-pool.ts:563
Protected
internalBusy
@@ -662,7 +646,7 @@ Can be overridden.
-
Returns boolean
+Defined in src/pools/abstract-pool.ts:298
Protected
Abstract
isMain
@@ -672,7 +656,7 @@ Can be overridden.
Returns boolean
+Defined in src/pools/abstract-pool.ts:367
Private
pushWorkerNode
@@ -691,7 +675,7 @@ Can be overridden.
Returns number
+Defined in src/pools/abstract-pool.ts:577
Protected
Abstract
registerWorkerMessageListener
@@ -728,7 +712,7 @@ Can be overridden.
Returns void
Returns void
+Defined in src/pools/abstract-pool.ts:458
Private
removeWorkerNode
@@ -745,7 +729,7 @@ Can be overridden.
Returns void
+Defined in src/pools/abstract-pool.ts:619
Protected
Abstract
sendToWorker
@@ -766,7 +750,7 @@ Can be overridden.
Returns void
+Defined in src/pools/abstract-pool.ts:447
+Defined in src/pools/abstract-pool.ts:266
+Defined in src/pools/abstract-pool.ts:218
setWorkerChoiceStrategyOptions
+Defined in src/pools/abstract-pool.ts:244
Private
setWorkerNode
@@ -853,7 +837,7 @@ Can be overridden.
Returns void
+Defined in src/pools/abstract-pool.ts:601
Private
setWorkerNodeTasksUsage
@@ -874,7 +858,7 @@ Can be overridden.
Returns void
+Defined in src/pools/abstract-pool.ts:549
Protected
setupHook
@@ -885,7 +869,7 @@ Can be overridden
Returns void
+Defined in src/pools/abstract-pool.ts:360
Private
tasksQueueSize
@@ -898,7 +882,7 @@ Can be overridden
workerNodeKey: number
Returns number
+Defined in src/pools/abstract-pool.ts:638
Protected
workerListener
@@ -925,7 +909,7 @@ Can be overridden
message: MessageValue<Response, unknown>
Returns void
+Defined in src/pools/abstract-pool.ts:504
Path to the worker file.