X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;ds=inline;f=docs%2Fclasses%2FFixedThreadPool.html;h=18916b7778b71162206b270641a5d18659a9594e;hb=57241eaecc79b3ee79731d161554d5e877a029be;hp=b8d02a3b8d2306644cd511e74b60732eaf82652f;hpb=8d20e449d72975f6add9177d1097d5a204d14f71;p=poolifier.git diff --git a/docs/classes/FixedThreadPool.html b/docs/classes/FixedThreadPool.html index b8d02a3b..18916b77 100644 --- a/docs/classes/FixedThreadPool.html +++ b/docs/classes/FixedThreadPool.html @@ -18,7 +18,6 @@
Protected
Readonly
fileProtected
Readonly
numberProtected
Readonly
optsOptions for the pool.
+ +Options for this fixed thread pool.
Protected
promiseProtected
workerWorker choice strategy context referencing a worker choice algorithm implementation.
-Default to a round robin algorithm.
Readonly
workerProtected
fullProtected
maxProtected
minProtected
typeProtected
workerThe received message.
Protected
afterProtected
beforeHook executed before the worker task execution. Can be overridden.
@@ -369,26 +367,30 @@ Can be overridden.The worker node key.
The task to execute.
+Protected
chooseProtected
createChooses a worker node for the next task.
-The default worker choice strategy uses a round robin algorithm to distribute the load.
+Creates a new dynamic worker and sets it up completely in the pool worker nodes.
The worker node key
+New, completely set up dynamic worker.
+Protected
createProtected
createReturns a newly created worker.
+Creates a new worker.
Newly created worker.
+ +Shutdowns every current worker in this pool.
+Terminate every current worker in this pool.
Protected
destroyShutdowns the given worker.
+Terminates the given worker.
Protected
internalProtected
isOverrides AbstractPool.isMain
Protected
registerOverrides AbstractPool.registerWorkerMessageListener
Protected
sendThe message.
Overrides AbstractPool.sendToWorker
Inherited from AbstractPool.setTasksQueueOptions
The worker choice strategy.
Inherited from AbstractPool.setWorkerChoiceStrategy
Inherited from AbstractPool.setWorkerChoiceStrategyOptions
Protected
setupInherited from AbstractPool.setupHook
Protected
workerThe listener function to execute when a message is received from a worker.
Inherited from AbstractPool.workerListener
A thread pool with a fixed number of threads.
It is possible to perform tasks in sync or asynchronous mode as you prefer.
-This pool selects the threads in a round robin fashion.
Author
Alessandro Pio Ardizio
@@ -47,7 +46,7 @@@@ -82,7 +81,7 @@after Task Execution Hook
after Worker Setup
before Task Execution Hook
-choose Worker Node
+create And Setup Dynamic Worker
create And Setup Worker
create Worker
destroy
@@ -129,7 +128,7 @@
-
opts: PoolOptions<ThreadWorkerWithMessageChannel> = {}
+opts: ThreadPoolOptions = {}
Options for this fixed thread pool.