X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=docs%2Fclasses%2FDynamicThreadPool.html;h=942726629e41e0eb78362832ded7167f8865de31;hb=493f77bdef6d66ad2fcb72b405c805274b24f3db;hp=02db47b5bcc24a322c2626872cee8701ae48f47e;hpb=938d9c678aa8e70e5642feffb90604cf25c993fe;p=poolifier.git diff --git a/docs/classes/DynamicThreadPool.html b/docs/classes/DynamicThreadPool.html index 02db47b5..94272662 100644 --- a/docs/classes/DynamicThreadPool.html +++ b/docs/classes/DynamicThreadPool.html @@ -24,9 +24,9 @@ When the maximum number of threads is reached and workers are busy, an event is
0.0.1
-Constructs a new poolifier dynamic thread pool.
Readonly
fileReadonly
maxMaximum number of threads that can be created by this pool.
Readonly
numberReadonly
optsProtected
promiseProtected
workerReadonly
workerProtected
fullPrivate
numberPrivate
numberPool maximum size.
+The worker.
The received message.
Protected
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 FixedThreadPool.createAndSetupWorker
Protected
createInherited from FixedThreadPool.createWorker
Inherited from FixedThreadPool.destroy
Protected
destroyInherited from FixedThreadPool.destroyWorker
Inherited from FixedThreadPool.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.
+Executes the specified function in the worker constructor with the task data input parameter.
Optional
data: DataThe task input data for the specified worker function. This can only be serializable data.
+Optional
name: stringThe name of the worker function to execute. If not specified, the default worker function will be executed.
Promise that will be fulfilled when the task is completed.
+Inherited from FixedThreadPool.execute
Protected
internalInherited from FixedThreadPool.internalBusy
Protected
isInherited from FixedThreadPool.isMain
Protected
registerRegisters a listener callback on the given worker.
Inherited from FixedThreadPool.registerWorkerMessageListener
Protected
sendThe worker which should receive the message.
The message.
Inherited from FixedThreadPool.sendToWorker
Inherited from FixedThreadPool.setTasksQueueOptions
Inherited from FixedThreadPool.setWorkerChoiceStrategy
Inherited from FixedThreadPool.setWorkerChoiceStrategyOptions
Protected
setupInherited from FixedThreadPool.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 FixedThreadPool.workerListener
Type of data sent to the worker. This can only be serializable data.
@@ -42,7 +42,7 @@ When the maximum number of threads is reached and workers are busy, an event is@@ -69,6 +69,7 @@ When the maximum number of threads is reached and workers are busy, an event is full number Of Queued Tasks
number Of Running Tasks
+size
type