X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=docs%2Fclasses%2FDynamicThreadPool.html;h=d00fdb27533fc1f230e808eb392cf4a4f9e064b9;hb=e1d3eccbb484bfbe36f6dcb9c4ef22a11621a00b;hp=e926d25229e0cdc77a8a43516f5ebce81c85d629;hpb=6c525543a7ed67a926b7c1f4bf98985aaad1f088;p=poolifier.git diff --git a/docs/classes/DynamicThreadPool.html b/docs/classes/DynamicThreadPool.html index e926d252..d00fdb27 100644 --- a/docs/classes/DynamicThreadPool.html +++ b/docs/classes/DynamicThreadPool.html @@ -33,7 +33,7 @@ When the maximum number of threads is reached and workers are busy, an event is
Readonly
filePath to the worker-file.
+Path to the worker file.
Readonly
maxMaximum number of threads that can be created by this pool.
Readonly
numberReadonly
optsProtected
promiseThe execution response promise map.
key
: The message id of each submitted task.Protected
workerReadonly
workerProtected
busyWhether the pool is busy or not.
@@ -219,10 +222,10 @@ When the maximum number of threads is reached and workers are busy, an event isProtected
fullWhether the pool is full or not.
@@ -231,7 +234,7 @@ When the maximum number of threads is reached and workers are busy, an event isPrivate
numberPrivate
numberPool type.
If it is 'dynamic'
, it provides the max
property.
Inherited from FixedThreadPool.afterTaskExecutionHook
Protected
afterInherited from FixedThreadPool.afterWorkerSetup
Protected
beforeInherited from FixedThreadPool.beforeTaskExecutionHook
Protected
chooseInherited from FixedThreadPool.chooseWorkerNode
Protected
createInherited from FixedThreadPool.createAndSetupWorker
Protected
createInherited from FixedThreadPool.createWorker
Inherited from FixedThreadPool.destroy
Protected
destroyShutdowns the given worker.
@@ -395,13 +398,35 @@ Can be overridden.Inherited from FixedThreadPool.destroyWorker
Enables/disables the worker tasks queue in this pool.
+Whether to enable or disable the worker tasks queue.
+Optional
tasksQueueOptions: TasksQueueOptionsThe worker tasks queue options.
+Inherited from FixedThreadPool.enableTasksQueue
+Performs the task specified in the constructor with the data parameter.
+Executes the function specified in the constructor with the task data input parameter.
Promise that will be resolved when the task is successfully completed.
The input for the specified task. This can only be serializable data.
+The task input data for the specified function. This can only be serializable data.
Inherited from FixedThreadPool.execute
Inherited from FixedThreadPool.findFreeWorkerNodeKey
Protected
internalInherited from FixedThreadPool.internalBusy
Protected
isInherited from FixedThreadPool.isMain
Protected
registerRegisters a listener callback on the given worker.
@@ -488,7 +513,7 @@ Can be overridden.Inherited from FixedThreadPool.registerWorkerMessageListener
Protected
sendInherited from FixedThreadPool.sendToWorker
Sets the worker tasks queue options in this pool.
+The worker tasks queue options.
+Inherited from FixedThreadPool.setTasksQueueOptions
+Sets the worker choice strategy in this pool.
The worker choice strategy.
+Optional
workerChoiceStrategyOptions: WorkerChoiceStrategyOptionsThe worker choice strategy options.
Inherited from FixedThreadPool.setWorkerChoiceStrategy
Sets the worker choice strategy options in this pool.
+The worker choice strategy options.
+Inherited from FixedThreadPool.setWorkerChoiceStrategyOptions
+Protected
setupInherited from FixedThreadPool.setupHook
Protected
workerInherited from FixedThreadPool.workerListener
Type of response of execution. This can only be serializable data.
+Type of execution response. This can only be serializable data.
Hierarchy
@@ -42,7 +42,7 @@ When the maximum number of threads is reached and workers are busy, an event is@@ -65,8 +65,8 @@ When the maximum number of threads is reached and workers are busy, an event is