X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;ds=inline;f=docs%2Fclasses%2FFixedThreadPool.html;h=12a297e21d9bcb5673d1aa97632f8420959469e3;hb=b4d61a7596f314145be453ddbcaa9b0dade39bfb;hp=1e6bea45b855b85a1fbb2c42fa893e1a4cbc46b2;hpb=bfed591d93e26b1e424e916abdb27c6f91dc9b45;p=poolifier.git diff --git a/docs/classes/FixedThreadPool.html b/docs/classes/FixedThreadPool.html index 1e6bea45..12a297e2 100644 --- a/docs/classes/FixedThreadPool.html +++ b/docs/classes/FixedThreadPool.html @@ -6,7 +6,7 @@
Optional
Readonly
emitterReadonly
fileInherited from AbstractPool.filePath
-Optional
Readonly
maxInherited from AbstractPool.max
-Protected
nextId of the next message.
+Path to the worker-file.
Inherited from AbstractPool.nextMessageId
+Inherited from AbstractPool.filePath
Readonly
numberNumber of workers that this pool should manage.
+Inherited from AbstractPool.numberOfWorkers
Readonly
optsOptions for the pool.
+Inherited from AbstractPool.opts
Protected
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.
Inherited from AbstractPool.promiseMap
+Inherited from AbstractPool.promiseResponseMap
Protected
workerInherited from AbstractPool.workerChoiceStrategyContext
Readonly
workers{@inheritDoc}
+Inherited from AbstractPool.workers
Readonly
workersInherited from AbstractPool.workersTasksUsage
-{@inheritDoc}
+Overrides AbstractPool.busy
{@inheritDoc}
+Inherited from AbstractPool.numberOfRunningTasks
{@inheritDoc}
+Overrides AbstractPool.type
Protected
afterProtected
afterHook executed after the worker task promise resolution. Can be overridden.
@@ -265,24 +239,24 @@ Can be overridden.The received message.
+The worker.
The Promise response.
+The received message.
Inherited from AbstractPool.afterPromiseWorkerResponseHook
+Inherited from AbstractPool.afterPromiseResponseHook
Protected
after{@inheritDoc}
+Overrides AbstractPool.afterWorkerSetup
Protected
beforeProtected
beforeHook executed before the worker task promise resolution. Can be overridden.
@@ -304,27 +278,27 @@ Can be overridden.The worker.
+The worker key.
Inherited from AbstractPool.beforePromiseWorkerResponseHook
+Inherited from AbstractPool.beforePromiseResponseHook
Protected
chooseChooses a worker for the next task.
The default implementation uses a round robin algorithm to distribute the load.
-Worker.
+[worker key, worker].
Inherited from AbstractPool.chooseWorker
Protected
createInherited from AbstractPool.createAndSetupWorker
Protected
create{@inheritDoc}
+Overrides AbstractPool.createWorker
{@inheritDoc}
+Inherited from AbstractPool.destroy
{@inheritDoc}
+Overrides AbstractPool.destroyWorker
{@inheritDoc}
+Inherited from AbstractPool.execute
Inherited from AbstractPool.findFreeWorker
-Inherited from AbstractPool.getWorkerAverageTasksRunTime
-Inherited from AbstractPool.getWorkerIndex
-Inherited from AbstractPool.getWorkerRunningTasks
-Initializes tasks usage statistics.
+{@inheritDoc}
The worker.
-Inherited from AbstractPool.initWorkerTasksUsage
-Protected
internalInherited from AbstractPool.internalExecute
+Inherited from AbstractPool.findFreeWorkerKey
Protected
internalInherited from AbstractPool.internalGetBusyStatus
Protected
is{@inheritDoc}
+Overrides AbstractPool.isMain
{@inheritDoc}
+Overrides AbstractPool.registerWorkerMessageListener
Protected
removeInherited from AbstractPool.removeWorker
Protected
send{@inheritDoc}
+Overrides AbstractPool.sendToWorker
{@inheritDoc}
+Inherited from AbstractPool.setWorkerChoiceStrategy
Protected
setupInherited from AbstractPool.setupHook
Protected
workerInherited from AbstractPool.workerListener
Inherit Doc