X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;ds=sidebyside;f=docs%2Fclasses%2FDynamicThreadPool.html;h=c9b126cc88102e3da49055f46db881b6943aaf74;hb=310ec53bbcd0289d0d0f7d254f7d8fc38db05ad9;hp=8e381bd07b203c21ce9a92f44b61570f7cabfa08;hpb=f06d10306cf1bfffb90048cf6e96c8507cd0e916;p=poolifier.git diff --git a/docs/classes/DynamicThreadPool.html b/docs/classes/DynamicThreadPool.html index 8e381bd0..c9b126cc 100644 --- a/docs/classes/DynamicThreadPool.html +++ b/docs/classes/DynamicThreadPool.html @@ -42,7 +42,7 @@ When the maximum number of threads is reached, an event is emitted. If you want
Readonly
fileProtected
Readonly
maxProtected
nextId of the next message.
-Readonly
numberReadonly
optsProtected
promiseThe promise map.
+Protected
promiseThe promise response map.
key
: This is the message Id of each submitted task.value
: An object that contains the worker, the resolve function and the reject function.key
: The message id of each submitted task.value
: An object that contains the worker, the promise resolve and reject callbacks.When we receive a message from the worker we get a map entry and resolve/reject the promise based on the message.
+When we receive a message from the worker we get a map entry with the promise resolve/reject bound to the message.
Protected
workerReadonly
workers{@inheritDoc}
Readonly
workers{@inheritDoc}
-Protected
afterProtected
afterHook executed after the worker task promise resolution. Can be overridden.
@@ -270,17 +249,17 @@ Can be overridden.The received message.
+The worker.
The Promise response.
+The received message.
Protected
afterProtected
beforeProtected
beforeHook executed before the worker task promise resolution. Can be overridden.
@@ -309,27 +288,27 @@ Can be overridden.The worker.
+The worker key.
Protected
chooseChooses a worker for the next task.
The default implementation uses a round robin algorithm to distribute the load.
-Worker.
+[worker key, worker].
Protected
createInherited from FixedThreadPool.createAndSetupWorker
Protected
createInherited from FixedThreadPool.createWorker
Inherited from FixedThreadPool.destroy
Inherited from FixedThreadPool.destroyWorker
Inherited from FixedThreadPool.execute
{@inheritDoc}
Inherited from FixedThreadPool.findFreeWorker
-{@inheritDoc}
-Inherited from FixedThreadPool.getWorkerAverageTasksRunTime
-{@inheritDoc}
-Inherited from FixedThreadPool.getWorkerIndex
-{@inheritDoc}
-Inherited from FixedThreadPool.getWorkerRunningTasks
+Inherited from FixedThreadPool.findFreeWorkerKey
Protected
internalInherited from FixedThreadPool.internalGetBusyStatus
Protected
isInherited from FixedThreadPool.isMain
Inherited from FixedThreadPool.registerWorkerMessageListener
Protected
removeInherited from FixedThreadPool.removeWorker
Protected
sendInherited from FixedThreadPool.sendToWorker
{@inheritDoc}
Inherited from FixedThreadPool.setWorkerChoiceStrategy
Protected
setupInherited from FixedThreadPool.setupHook
Protected
workerInherited from FixedThreadPool.workerListener
Maximum number of threads that can be created by this pool.