X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;ds=inline;f=docs%2Fclasses%2FDynamicThreadPool.html;h=de2edc9d8649f9a8a2c83a1386b686ddedd67699;hb=8d98e603c79d8d00b2b6a33e5f732701a7466234;hp=3bb7453c25395b7b60d86b6fa8ec8f70c7e91aee;hpb=749e1fa387ba832c85f789337b3c2e679331cb64;p=poolifier.git diff --git a/docs/classes/DynamicThreadPool.html b/docs/classes/DynamicThreadPool.html index 3bb7453c..de2edc9d 100644 --- a/docs/classes/DynamicThreadPool.html +++ b/docs/classes/DynamicThreadPool.html @@ -42,7 +42,7 @@ When the maximum number of threads is reached and workers are busy, an event is
'full'
: Emitted when the pool is dynamic and full.'busy'
: Emitted when the pool is busy.'error'
: Emitted when an uncaught error occurs.'taskError'
: Emitted when an error occurs while executing a task.Readonly
fileProtected
Readonly
fileReadonly
maxProtected
Readonly
maxMaximum number of threads that can be created by this pool.
Readonly
numberProtected
Readonly
numberNumber of workers that this pool should manage.
Readonly
optsProtected
Readonly
optsOptions for the pool.
Protected
promiseProtected
workerReadonly
workerProtected
fullWhether the pool is full or not.
The pool filling boolean status.
Private
numberProtected
maxNumber of tasks queued in the pool.
+Pool maximum size.
Private
numberProtected
minNumber of tasks running in the pool.
+Pool minimum size.
Protected
typePool type.
If it is 'dynamic'
, it provides the max
property.
Protected
workerGets the worker type.
+Inherited from FixedThreadPool.worker
+The worker.
The received message.
Inherited from FixedThreadPool.afterTaskExecutionHook
Protected
afterInherited from FixedThreadPool.afterWorkerSetup
Protected
beforeInherited from FixedThreadPool.beforeTaskExecutionHook
Protected
chooseChooses a worker node for the next task.
-The default uses a round robin algorithm to distribute the load.
+The default worker choice strategy uses a round robin algorithm to distribute the load.
[worker node key, worker node].
+The worker node key
Inherited from FixedThreadPool.chooseWorkerNode
Protected
createInherited 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.
+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
registerInherited from FixedThreadPool.registerWorkerMessageListener
Protected
sendThe worker which should receive the message.
The message.
Inherited from FixedThreadPool.sendToWorker
Inherited from FixedThreadPool.setTasksQueueOptions
The worker choice strategy.
Inherited from FixedThreadPool.setWorkerChoiceStrategy
Inherited from FixedThreadPool.setWorkerChoiceStrategyOptions
Protected
setupInherited from FixedThreadPool.setupHook
Protected
workerThe listener function to execute when a message is received from a worker.
Inherited from FixedThreadPool.workerListener
Generated using TypeDoc
Path to the worker file.