X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=docs%2Fclasses%2FDynamicThreadPool.html;h=f61c7c4e7467b0e3651c578d461d7e65f06fbd8c;hb=797996a92f40d5779cd31314b59462e41d529989;hp=5ed3339c53b338e1e4b4e5cb7cb94e4d1c18e52b;hpb=ed1ecf09c599769ed61771ec25d71c39c19ba70b;p=poolifier.git diff --git a/docs/classes/DynamicThreadPool.html b/docs/classes/DynamicThreadPool.html index 5ed3339c..f61c7c4e 100644 --- a/docs/classes/DynamicThreadPool.html +++ b/docs/classes/DynamicThreadPool.html @@ -1,11 +1,13 @@
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 emitter
.
of data sent to the worker. This can only be serializable data.
- -of response of execution. This can only be serializable data.
-0.0.1
@@ -30,9 +28,13 @@ When the maximum number of threads is reached, an event is emitted. If you wantType of response of execution. This can only be serializable data.
+Constructs a new poolifier dynamic thread pool.
Path to an implementation of a ThreadWorker
file, which can be relative or absolute.
Optional
opts: PoolOptions<ThreadWorkerWithMessageChannel> = {}Options for this dynamic thread pool.
Optional
Readonly
emitterReadonly
filePath to the worker-file.
+Inherited from FixedThreadPool.filePath
Readonly
maxProtected
Readonly
maxInherited from FixedThreadPool.max
+Maximum number of threads that can be created by this pool.
+Protected
nextInherited from FixedThreadPool.nextMessageId
Readonly
numberNumber of workers that this pool should manage.
+Inherited from FixedThreadPool.numberOfWorkers
Readonly
optsOptions for the pool.
+Inherited from FixedThreadPool.opts
Protected
promiseInherited from FixedThreadPool.promiseMap
Protected
workerInherited from FixedThreadPool.workerChoiceStrategyContext
Readonly
workers{@inheritDoc}
+Inherited from FixedThreadPool.workers
Readonly
workers{@inheritDoc}
+Inherited from FixedThreadPool.workersTasksUsage
{@inheritDoc}
+Overrides FixedThreadPool.busy
{@inheritDoc}
+Inherited from FixedThreadPool.numberOfRunningTasks
{@inheritDoc}
+Overrides FixedThreadPool.type
Inherited from FixedThreadPool.afterPromiseWorkerResponseHook
Protected
after{@inheritDoc}
+Inherited from FixedThreadPool.afterWorkerSetup
Protected
beforeInherited from FixedThreadPool.beforePromiseWorkerResponseHook
Protected
chooseInherited 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.findFreeWorker
{@inheritDoc}
+Inherited from FixedThreadPool.getWorkerAverageTasksRunTime
{@inheritDoc}
+Inherited from FixedThreadPool.getWorkerIndex
{@inheritDoc}
+Inherited from FixedThreadPool.getWorkerRunningTasks
Initializes tasks usage statistics.
-The worker.
-Inherited from FixedThreadPool.initWorkerTasksUsage
-Protected
internalInherited from FixedThreadPool.internalExecute
-Protected
internalInherited from FixedThreadPool.internalGetBusyStatus
Protected
is{@inheritDoc}
+Inherited from FixedThreadPool.isMain
{@inheritDoc}
+Inherited from FixedThreadPool.registerWorkerMessageListener
Protected
removeWorker that will be removed.
+The worker that will be removed.
Inherited 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
Type of data sent to the worker. This can only be serializable data.
+