X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=docs%2Fclasses%2FFixedClusterPool.html;h=1db4664db67684b1422ec7bbb03c3ca33150c6a9;hb=42c1da2ebcb24bed03bbce17c0e32c8c09f9f7e8;hp=b8a6f3ee95084808665d650ade9e06d16f4f3dd2;hpb=b142df6d1278e9d0b6c4c7226bf3dae36c486410;p=poolifier.git diff --git a/docs/classes/FixedClusterPool.html b/docs/classes/FixedClusterPool.html index b8a6f3ee..1db4664d 100644 --- a/docs/classes/FixedClusterPool.html +++ b/docs/classes/FixedClusterPool.html @@ -1,11 +1,13 @@
It is possible to perform tasks in sync or asynchronous mode as you prefer.
This pool selects the workers in a round robin fashion.
-of data sent to the worker. This can only be serializable data.
- -of response of execution. This can only be serializable data.
-2.0.0
@@ -30,9 +28,13 @@Type of response of execution. This can only be serializable data.
+Constructs a new poolifier fixed cluster pool.
Path to an implementation of a ClusterWorker
file, which can be relative or absolute.
Optional
opts: ClusterPoolOptions = {}Options for this fixed cluster pool.
Optional
Readonly
emitterReadonly
fileOptional
Readonly
maxProtected
nextReadonly
numberReadonly
optsProtected
promiseReadonly
tasksProtected
workerReadonly
workersReadonly
workersProtected
afterHook executed after the worker task promise resolution. +Can be overridden.
+The received message.
+The Promise response.
+Protected
afterProtected
beforeProtected
chooseChoose a worker for the next task.
+Chooses a worker for the next task.
The default implementation uses a round robin algorithm to distribute the load.
Worker.
@@ -278,7 +313,7 @@Protected
createProtected
createProtected
decreaseProtected
increaseProtected
internalProtected
internalProtected
isProtected
removeWorker that will be removed.
+The worker that will be removed.
Protected
sendProtected
setupProtected
worker
Type of data sent to the worker. This can only be serializable data.
+