X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=docs%2Fclasses%2FDynamicThreadPool.html;h=ee436697fbaef10a8b6b36b5749a6985d9ac6161;hb=4a1fe3d43ed62499dfc8352e6cc93b13931ecdaf;hp=fcd381101e5f9fcb0585834eb15909697474e9de;hpb=fddf9cc424b3ace38fd414899c666c76a03c3aff;p=poolifier.git diff --git a/docs/classes/DynamicThreadPool.html b/docs/classes/DynamicThreadPool.html index fcd38110..ee436697 100644 --- a/docs/classes/DynamicThreadPool.html +++ b/docs/classes/DynamicThreadPool.html @@ -45,7 +45,7 @@ When the maximum number of threads is reached and workers are busy, an event is
Protected
Readonly
fileProtected
Readonly
maxProtected
Readonly
numberProtected
Readonly
optsOptions for the pool.
+ +Options for this fixed thread pool.
Protected
promiseProtected
workerWorker choice strategy context referencing a worker choice algorithm implementation.
-Default to a round robin algorithm.
Readonly
workerProtected
fullProtected
maxProtected
minProtected
typeProtected
workerThe received message.
Protected
afterProtected
beforeHook executed before the worker task execution. Can be overridden.
@@ -381,26 +380,30 @@ Can be overridden.The worker node key.
The task to execute.
+Protected
chooseProtected
createChooses a worker node for the next task.
-The default worker choice strategy uses a round robin algorithm to distribute the load.
+Creates a new dynamic worker and sets it up completely in the pool worker nodes.
The worker node key
+New, completely set up dynamic worker.
+Protected
createProtected
createReturns a newly created worker.
+Creates a new worker.
Newly created worker.
+ +Shutdowns every current worker in this pool.
+Terminate every current worker in this pool.
Protected
destroyShutdowns the given worker.
+Terminates the given worker.
Protected
internalProtected
isInherited from FixedThreadPool.isMain
Protected
registerInherited from FixedThreadPool.registerWorkerMessageListener
Protected
sendThe 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
Options for this dynamic thread pool.