X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=docs%2Fclasses%2FFixedClusterPool.html;h=412adcef0139d13b7d434269254326b602a2aad8;hb=0a1679ba0ec3a6ebc3400ca103612d0e106cde53;hp=9e33831153c969707ae03e8558f32410d4b992b6;hpb=fbc22127e53d3ec0ecbd38ecea25fb92ebef50e7;p=poolifier.git diff --git a/docs/classes/FixedClusterPool.html b/docs/classes/FixedClusterPool.html index 9e338311..412adcef 100644 --- a/docs/classes/FixedClusterPool.html +++ b/docs/classes/FixedClusterPool.html @@ -24,9 +24,9 @@
2.0.0
-Readonly
fileReadonly
numberReadonly
optsProtected
promiseProtected
workerReadonly
workerProtected
fullPrivate
numberPrivate
numberProtected
afterProtected
beforeProtected
chooseChooses a worker node for the next task.
The default uses a round robin algorithm to distribute the load.
- -[worker node key, worker node].
Protected
createCreates a new worker and sets it up completely in the pool worker nodes.
- -New, completely set up worker.
New, completely set up worker.
+Inherited from AbstractPool.createAndSetupWorker
Protected
createOverrides AbstractPool.createWorker
Inherited from AbstractPool.destroy
Protected
destroyOverrides AbstractPool.destroyWorker
Inherited from AbstractPool.enableTasksQueue
Executes the function specified in the worker constructor with the task data input parameter.
- -Promise that will be fulfilled when the task is completed.
Optional
data: DataThe task input data for the specified worker function. This can only be serializable data.
Promise that will be fulfilled when the task is completed.
+Inherited from AbstractPool.execute
Protected
internalInherited from AbstractPool.internalBusy
Protected
isOverrides AbstractPool.isMain
Protected
registerRegisters a listener callback on the given worker.
Overrides AbstractPool.registerWorkerMessageListener
Protected
sendOverrides AbstractPool.sendToWorker
Inherited from AbstractPool.setTasksQueueOptions
Inherited from AbstractPool.setWorkerChoiceStrategy
Inherited from AbstractPool.setWorkerChoiceStrategyOptions
Protected
setupOverrides AbstractPool.setupHook
Protected
workerThis function is the listener registered for each worker message.
- -The listener function to execute when a message is received from a worker.
The listener function to execute when a message is received from a worker.
+This function is the listener registered for each worker message.
- -The listener function to execute when a message is received from a worker.
The listener function to execute when a message is received from a worker.
+Inherited from AbstractPool.workerListener
Type of data sent to the worker. This can only be serializable data.
@@ -44,7 +44,7 @@@@ -103,9 +103,9 @@-
-
+
+ - Defined in src/pools/cluster/fixed.ts:50
Constructs a new poolifier fixed cluster pool.
Type Parameters
-+-
-
@@ -128,7 +128,7 @@
Data = unknown
Returns FixedClusterPool<Data, Response>
Properties