X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=docs%2Fclasses%2FFixedClusterPool.html;h=e49051932e9161ea55991180b3d392b5c1b2baaf;hb=afc003b20097712625ffd053e256ef5336e27b6e;hp=c01b7c9ed62d788ed7cc1b0d578e249e68479ff5;hpb=f06d10306cf1bfffb90048cf6e96c8507cd0e916;p=poolifier.git diff --git a/docs/classes/FixedClusterPool.html b/docs/classes/FixedClusterPool.html index c01b7c9e..e4905193 100644 --- a/docs/classes/FixedClusterPool.html +++ b/docs/classes/FixedClusterPool.html @@ -44,7 +44,7 @@
+Readonly
fileProtected
nextReadonly
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
workerWorker choice strategy instance implementing the worker choice algorithm.
-Default to a strategy implementing a round robin algorithm.
+Worker choice strategy context referencing a worker choice algorithm implementation.
+Default to a round robin algorithm.
Readonly
workers{@inheritDoc}
Readonly
workers{@inheritDoc}
-{@inheritDoc}
Private
numberNumber of tasks concurrently running in the pool.
+Protected
afterProtected
afterHook executed after the worker task promise resolution. Can be overridden.
@@ -260,17 +251,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.
@@ -299,27 +290,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.
+The default uses a round robin algorithm to distribute the load.
-Worker.
+[worker key, worker].
Protected
createInherited from AbstractPool.createAndSetupWorker
Protected
createOverrides AbstractPool.createWorker
Inherited from AbstractPool.destroy
Overrides AbstractPool.destroyWorker
Inherited from AbstractPool.execute
{@inheritDoc}
-Inherited from AbstractPool.findFreeWorker
-{@inheritDoc}
Inherited from AbstractPool.getWorkerAverageTasksRunTime
-{@inheritDoc}
-Inherited from AbstractPool.getWorkerIndex
-{@inheritDoc}
-Inherited from AbstractPool.getWorkerRunningTasks
+Inherited from AbstractPool.findFreeWorkerKey
Protected
internalProtected
internalInherited from AbstractPool.internalGetBusyStatus
+Inherited from AbstractPool.internalBusy
Protected
isOverrides AbstractPool.isMain
Overrides AbstractPool.registerWorkerMessageListener
Protected
removeInherited from AbstractPool.removeWorker
Protected
sendOverrides AbstractPool.sendToWorker
{@inheritDoc}
Inherited from AbstractPool.setWorkerChoiceStrategy
Protected
setupOverrides AbstractPool.setupHook
Protected
workerInherited from AbstractPool.workerListener
Id of the next message.
-