X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=docs%2Fclasses%2FDynamicThreadPool.html;h=d263e3e982c78a2db847dfa57f67ef41f10b2e29;hb=71a64eca52278c2396cf7cb6e6c53fce3704f5ab;hp=bda91d6193575e4dc0aba89bdeb01f3a2c07d49e;hpb=0770fe626b2bb3212a1d73fa4764973ac92e241a;p=poolifier.git diff --git a/docs/classes/DynamicThreadPool.html b/docs/classes/DynamicThreadPool.html index bda91d61..d263e3e9 100644 --- a/docs/classes/DynamicThreadPool.html +++ b/docs/classes/DynamicThreadPool.html @@ -18,7 +18,7 @@
Private
Readonly
maxMaximum number of threads that can be created by this pool.
Readonly
numberInherited from FixedThreadPool.numberOfWorkers
Readonly
optsInherited from FixedThreadPool.opts
Protected
promiseInherited from FixedThreadPool.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 FixedThreadPool.workerChoiceStrategyContext
Readonly
workers{@inheritDoc}
-Inherited from FixedThreadPool.workers
{@inheritDoc}
-Overrides FixedThreadPool.busy
{@inheritDoc}
-Overrides FixedThreadPool.full
Private
numberNumber of tasks concurrently running.
+Number of tasks concurrently running in the pool.
Inherited from FixedThreadPool.numberOfRunningTasks
{@inheritDoc}
-Overrides FixedThreadPool.type
Inherited from FixedThreadPool.afterPromiseResponseHook
Protected
after{@inheritDoc}
-Inherited from FixedThreadPool.afterWorkerSetup
Protected
beforeInherited from FixedThreadPool.beforePromiseResponseHook
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 key, worker].
Inherited from FixedThreadPool.chooseWorker
Protected
createInherited from FixedThreadPool.createAndSetupWorker
Protected
create{@inheritDoc}
-Inherited from FixedThreadPool.createWorker
{@inheritDoc}
-Inherited from FixedThreadPool.destroy
{@inheritDoc}
-Inherited from FixedThreadPool.destroyWorker
{@inheritDoc}
-Inherited from FixedThreadPool.execute
{@inheritDoc}
-Inherited from FixedThreadPool.findFreeWorkerKey
Protected
internalInherited from FixedThreadPool.internalBusy
Protected
is{@inheritDoc}
-Inherited from FixedThreadPool.isMain
{@inheritDoc}
-Inherited from FixedThreadPool.registerWorkerMessageListener
Protected
removeInherited from FixedThreadPool.removeWorker
Protected
send{@inheritDoc}
-Inherited from FixedThreadPool.sendToWorker
{@inheritDoc}
-Inherited from FixedThreadPool.setWorkerChoiceStrategy
Protected
setupInherited from FixedThreadPool.setupHook
Protected
workerInherited from FixedThreadPool.workerListener
A thread pool with a dynamic number of threads, but a guaranteed minimum number of threads.
This thread pool creates new threads when the others are busy, up to the maximum number of threads. -When the maximum number of threads is reached, an event is emitted. If you want to listen to this event, use the pool's
+When the maximum number of threads is reached and workers are busy, an event is emitted. If you want to listen to this event, use the pool'semitter
.emitter
.Author
Alessandro Pio Ardizio
@@ -42,7 +42,7 @@ When the maximum number of threads is reached, an event is emitted. If you want@@ -129,17 +129,17 @@ When the maximum number of threads is reached, an event is emitted. If you want
Returns DynamicThreadPool<Data, Response>
Properties
Optional
Readonly
emitter{@inheritDoc}
-Readonly
fileInherited from FixedThreadPool.filePath
-- Defined in src/pools/abstract-pool.ts:67