X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;ds=sidebyside;f=docs%2Fclasses%2FFixedThreadPool.html;h=a02b125a6471ad45875d111e4d8eaf14bed4b993;hb=74f29142ea20199700ef7021402616ea9de714a8;hp=1e6bea45b855b85a1fbb2c42fa893e1a4cbc46b2;hpb=bfed591d93e26b1e424e916abdb27c6f91dc9b45;p=poolifier.git diff --git a/docs/classes/FixedThreadPool.html b/docs/classes/FixedThreadPool.html index 1e6bea45..a02b125a 100644 --- a/docs/classes/FixedThreadPool.html +++ b/docs/classes/FixedThreadPool.html @@ -6,7 +6,7 @@
Readonly
fileOptional
Readonly
maxProtected
nextId of the next message.
+Path to the worker-file.
Readonly
numberReadonly
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
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.
Inherited from AbstractPool.workerChoiceStrategyContext
Readonly
workersInherited from AbstractPool.workers
-Readonly
workersReadonly
workerInherited from AbstractPool.workersTasksUsage
+Inherited from AbstractPool.workerNodes
Overrides AbstractPool.busy
Overrides AbstractPool.full
+Private
numberNumber of tasks queued in the pool.
+Inherited from AbstractPool.numberOfQueuedTasks
+Private
numberNumber of tasks running in the pool.
+Inherited from AbstractPool.numberOfRunningTasks
Overrides AbstractPool.type
Protected
afterProtected
afterHook executed after the worker task promise resolution. Can be overridden.
@@ -265,17 +268,17 @@ Can be overridden.The received message.
+The worker.
The Promise response.
+The received message.
Inherited from AbstractPool.afterPromiseWorkerResponseHook
+Inherited from AbstractPool.afterPromiseResponseHook
Protected
afterOverrides AbstractPool.afterWorkerSetup
Protected
beforeProtected
beforeHook executed before the worker task promise resolution. Can be overridden.
@@ -304,40 +307,40 @@ Can be overridden.The worker.
+The worker node key.
Inherited from AbstractPool.beforePromiseWorkerResponseHook
+Inherited from AbstractPool.beforePromiseResponseHook
Protected
chooseProtected
chooseChooses a worker for the next task.
-The default implementation uses a round robin algorithm to distribute the load.
+Chooses a worker node for the next task.
+The default uses a round robin algorithm to distribute the load.
-Worker.
+[worker node key, worker node].
Inherited from AbstractPool.chooseWorker
+Inherited from AbstractPool.chooseWorkerNode
Protected
createCreates a new worker for this pool and sets it up completely.
+Creates a new worker and sets it up completely in the pool worker nodes.
New, completely set up worker.
Inherited from AbstractPool.createAndSetupWorker
Protected
createOverrides AbstractPool.createWorker
Protected
dequeueInherited from AbstractPool.dequeueTask
+Inherited from AbstractPool.destroy
Overrides AbstractPool.destroyWorker
Protected
enqueueInherited from AbstractPool.execute
-Inherited from AbstractPool.findFreeWorker
-Inherited from AbstractPool.getWorkerAverageTasksRunTime
+Inherited from AbstractPool.enqueueTask
Inherited from AbstractPool.getWorkerIndex
+Inherited from AbstractPool.execute
Inherited from AbstractPool.getWorkerRunningTasks
+Inherited from AbstractPool.findFreeWorkerNodeKey
Protected
flushInitializes tasks usage statistics.
-The worker.
-Inherited from AbstractPool.initWorkerTasksUsage
+Inherited from AbstractPool.flushTasksQueue
Protected
internalProtected
flushInherited from AbstractPool.internalExecute
+Inherited from AbstractPool.flushTasksQueueByWorker
Protected
internalProtected
internalInherited from AbstractPool.internalGetBusyStatus
+Inherited from AbstractPool.internalBusy
Protected
isOverrides AbstractPool.isMain
Overrides AbstractPool.registerWorkerMessageListener
Protected
removeProtected
removeRemoves the given worker from the pool.
+Removes the given worker from the pool worker nodes.
The worker that will be removed.
+The worker.
Inherited from AbstractPool.removeWorker
+Inherited from AbstractPool.removeWorkerNode
Protected
sendOverrides AbstractPool.sendToWorker
Inherited from AbstractPool.setWorkerChoiceStrategy
Protected
setupSetup hook that can be overridden by a Poolifier pool implementation -to run code before workers are created in the abstract constructor.
+Setup hook to run code before worker node are created in the abstract constructor. +Can be overridden
Inherited from AbstractPool.setupHook
Protected
tasksInherited from AbstractPool.tasksQueueLength
+Protected
workerThis function is the listener registered for each worker.
+This function is the listener registered for each worker message.
The listener function to execute when a message is received from a worker.
This function is the listener registered for each worker.
+This function is the listener registered for each worker message.
The listener function to execute when a message is received from a worker.
Inherited from AbstractPool.workerListener
Generated using TypeDoc
Inherit Doc