X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;ds=sidebyside;f=docs%2Fclasses%2FDynamicThreadPool.html;h=b9b5f244809ffb282067aa9c6e2aaf5c04760920;hb=2624da4d8f724e8bc0b655cddfc6ba5ae9a4d053;hp=a609d859bfb1757fb5c7beacb7dc657f3182dd43;hpb=6d59ea2c71b8a88d41498c6fb54dfad95fd3a3ac;p=poolifier.git diff --git a/docs/classes/DynamicThreadPool.html b/docs/classes/DynamicThreadPool.html index a609d859..b9b5f244 100644 --- a/docs/classes/DynamicThreadPool.html +++ b/docs/classes/DynamicThreadPool.html @@ -30,12 +30,12 @@ When the maximum number of threads is reached and workers are busy, an event is
Protected
Readonly
numberProtected
Readonly
optsProtected
promiseThe execution response promise map.
key
: The message id of each submitted task.Protected
workerWorker choice strategy context referencing a worker choice algorithm implementation.
Readonly
workerPool worker nodes.
Protected
fullProtected
maxProtected
minPrivate
runGets the pool run time.
+The pool run time in milliseconds.
+ +Protected
typePrivate
utilizationGets the approximate pool utilization.
+The pool utilization.
+ +Protected
workerThe worker.
The received message.
Protected
afterFunction that can be hooked up when a worker has been newly created and moved to the pool worker nodes.
-Can be used to update the maxListeners
or binding the main-worker
<->worker
connection if not bind by default.
Function that can be hooked up when a worker has been newly created and moved to the pool worker nodes. +Can be overridden.
The newly created worker.
Protected
beforeProtected
createCreates a new dynamic worker and sets it up completely in the pool worker nodes.
New, completely set up dynamic worker.
+New, completely set up dynamic worker.
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.
Protected
createCreates a new worker.
Newly created worker.
+Newly created worker.
Terminate every current worker in this pool.
+Terminates every current worker in this pool.
Protected
destroyA worker within workerNodes
.
Optional
data: DataThe task input data for the specified worker function. This can only be serializable data.
+The task input data for the specified worker function. This can only be structured-cloneable data.
Protected
internalProtected
isProtected
registerRegisters a listener callback on the given worker.
-The worker which should register a listener.
-The message listener callback.
-Protected
sendThe worker which should receive the message.
The message.
Protected
setupSetup hook to execute code before worker node are created in the abstract constructor. -Can be overridden
+Setup hook to execute code before worker nodes are created in the abstract constructor. +Can be overridden.
Protected
workerThe listener function to execute when a message is received from a worker.
Generated using TypeDoc
Type of data sent to the worker. This can only be serializable data.
+Type of data sent to the worker. This can only be structured-cloneable data.
Response = unknown
-Type of execution response. This can only be serializable data.
+Type of execution response. This can only be structured-cloneable data.
@@ -73,7 +73,9 @@ When the maximum number of threads is reached and workers are busy, an event is info max Size
min Size
+run Time
type
+utilization
worker
Properties
Protected
Readonly
fileProtected
Readonly
max