X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;ds=inline;f=docs%2Fclasses%2FDynamicClusterPool.html;h=6067d62e3f645e358d276af007ae25e70e63980f;hb=3dd69d8ee8aa2132fccb106720a9f5ae67b92cc8;hp=6383bbff27f10fe587f8d7256ef7c439111292d4;hpb=15e4d8f3cafe9f7412913b0e440921e813bdf3cd;p=poolifier.git diff --git a/docs/classes/DynamicClusterPool.html b/docs/classes/DynamicClusterPool.html index 6383bbff..6067d62e 100644 --- a/docs/classes/DynamicClusterPool.html +++ b/docs/classes/DynamicClusterPool.html @@ -24,9 +24,9 @@ When the maximum number of workers is reached and workers are busy, an event is
2.0.0
-Readonly
fileReadonly
maxMaximum number of workers that can be created by this pool.
Readonly
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 FixedClusterPool.createAndSetupWorker
Protected
createInherited from FixedClusterPool.createWorker
Inherited from FixedClusterPool.destroy
Protected
destroyInherited from FixedClusterPool.destroyWorker
Inherited from FixedClusterPool.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 FixedClusterPool.execute
Protected
internalInherited from FixedClusterPool.internalBusy
Protected
isInherited from FixedClusterPool.isMain
Protected
registerRegisters a listener callback on the given worker.
Inherited from FixedClusterPool.registerWorkerMessageListener
Protected
sendInherited from FixedClusterPool.sendToWorker
Inherited from FixedClusterPool.setTasksQueueOptions
Inherited from FixedClusterPool.setWorkerChoiceStrategy
Inherited from FixedClusterPool.setWorkerChoiceStrategyOptions
Protected
setupInherited from FixedClusterPool.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 FixedClusterPool.workerListener
Type of data sent to the worker. This can only be serializable data.
@@ -42,7 +42,7 @@ When the maximum number of workers is reached and workers are busy, an event is@@ -102,9 +102,9 @@ When the maximum number of workers is reached and workers are busy, an event is-
-
+
+ - Defined in src/pools/cluster/dynamic.ts:28
Constructs a new poolifier dynamic cluster pool.
Type Parameters
-+-
-
@@ -131,7 +131,7 @@ When the maximum number of workers is reached and workers are busy, an event is
Data = unknown
Returns DynamicClusterPool<Data, Response>
Properties