X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;ds=sidebyside;f=docs%2Fclasses%2FDynamicClusterPool.html;h=09bddee613cddcf688eac0525f44ba4128bb51e8;hb=310ec53bbcd0289d0d0f7d254f7d8fc38db05ad9;hp=72689ccd9e8dcde7d2904ba2a6c0a9e280c5ee14;hpb=5a94e4b950eaf2234e07f87261ddea1482e839c6;p=poolifier.git diff --git a/docs/classes/DynamicClusterPool.html b/docs/classes/DynamicClusterPool.html index 72689ccd..09bddee6 100644 --- a/docs/classes/DynamicClusterPool.html +++ b/docs/classes/DynamicClusterPool.html @@ -42,7 +42,7 @@ When the maximum number of workers 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
chooseProtected
createInherited from FixedClusterPool.createAndSetupWorker
Protected
createInherited from FixedClusterPool.createWorker
Inherited from FixedClusterPool.destroy
Inherited from FixedClusterPool.destroyWorker
Inherited from FixedClusterPool.execute
{@inheritDoc}
Inherited from FixedClusterPool.findFreeWorker
-{@inheritDoc}
-Inherited from FixedClusterPool.getWorkerAverageTasksRunTime
-{@inheritDoc}
-Inherited from FixedClusterPool.getWorkerIndex
-{@inheritDoc}
-Inherited from FixedClusterPool.getWorkerRunningTasks
+Inherited from FixedClusterPool.findFreeWorkerKey
Protected
internalInherited from FixedClusterPool.internalGetBusyStatus
Protected
isInherited from FixedClusterPool.isMain
Inherited from FixedClusterPool.registerWorkerMessageListener
Protected
removeInherited from FixedClusterPool.removeWorker
Protected
sendInherited from FixedClusterPool.sendToWorker
{@inheritDoc}
Inherited from FixedClusterPool.setWorkerChoiceStrategy
Protected
setupInherited from FixedClusterPool.setupHook
Protected
workerInherited from FixedClusterPool.workerListener
Maximum number of workers that can be created by this pool.