X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=docs%2Fclasses%2FFixedClusterPool.html;h=cc4ee529743e034bb8d4b10eead673b8e01c457e;hb=ccb7d1a70cd9bd4eb050160517e5bc48311d014f;hp=0cd54edbf61defc7c28c6bb4129dfe7793cc8edf;hpb=bf4dcb92f8d370524a2975961731fe6c4e8b083c;p=poolifier.git diff --git a/docs/classes/FixedClusterPool.html b/docs/classes/FixedClusterPool.html index 0cd54edb..cc4ee529 100644 --- a/docs/classes/FixedClusterPool.html +++ b/docs/classes/FixedClusterPool.html @@ -44,7 +44,7 @@
+'full'
: Emitted when the pool is dynamic and full.'busy'
: Emitted when the pool is busy.'error'
: Emitted when an uncaught error occurs.'taskError'
: Emitted when an error occurs while executing a task.Readonly
fileReadonly
numberReadonly
optsProtected
promiseProtected
workerReadonly
workerProtected
fullPrivate
numberPrivate
numberThe worker.
The received message.
Protected
afterProtected
beforeProtected
chooseChooses a worker node for the next task.
-The default uses a round robin algorithm to distribute the load.
+The default worker choice strategy uses a round robin algorithm to distribute the load.
[worker node key, worker node].
+The worker node key
Protected
createProtected
createProtected
destroyExecutes the function specified in the worker constructor with the task data input parameter.
+Executes the specified function in the worker constructor with the task data input parameter.
Optional
data: DataThe task input data for the specified worker function. This can only be serializable data.
+Optional
name: stringThe name of the worker function to execute. If not specified, the default worker function will be executed.
Promise that will be fulfilled when the task is completed.
+Protected
internalProtected
isProtected
registerProtected
sendThe worker which should receive the message.
The message.
The worker choice strategy.
Protected
setupProtected
workerThe listener function to execute when a message is received from a worker.
Pool maximum size.
+