X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;ds=sidebyside;f=docs%2Fclasses%2FClusterWorker.html;h=22aa4f651f6c505681afce52e086ca223cf43bdc;hb=4ac4f9763953bff98fa66c950a8c01284ffd5332;hp=a6fc7d3c32d62380a8a099a76ed0813c365de6ed;hpb=a76fac14098cf2138cf8d6997ac7c89d8c3ae508;p=poolifier.git diff --git a/docs/classes/ClusterWorker.html b/docs/classes/ClusterWorker.html index a6fc7d3c..22aa4f65 100644 --- a/docs/classes/ClusterWorker.html +++ b/docs/classes/ClusterWorker.html @@ -1,11 +1,13 @@
If you use a DynamicClusterPool
the extra workers that were created will be terminated,
but the minimum number of workers will be guaranteed.
of data this worker receives from pool's execution. This can only be serializable data.
- -of response the worker sends back to the main worker. This can only be serializable data.
-2.0.0
@@ -32,17 +30,21 @@ but the minimum number of workers will be guaranteed.Type of response the worker sends back to the main worker. This can only be serializable data.
+Options for the worker.
Handler Id of the aliveInterval
worker alive check.
Protected
lastTimestamp of the last task processed by this worker.
Protected
mainReadonly
optsOptions for the worker.
The unique asyncId
assigned to the resource.
Binds the given function to execute to this AsyncResource
's scope.
The returned function will have an asyncResource
property referencing
@@ -186,8 +188,8 @@ the AsyncResource
to which the function is bound.
The function to bind to the current AsyncResource
.
AsyncResource
to which the function is bound.
Check to see if the worker should be terminated, because its living too long.
+Checks if the worker should be terminated, because its living too long.
Inherited from AbstractWorker.checkAlive
+Inherited from AbstractWorker.checkAlive
A reference to asyncResource
.
Inherited from AbstractWorker.emitDestroy
+Inherited from AbstractWorker.emitDestroy
Reference to the main worker.
Inherited from AbstractWorker.getMainWorker
+Inherited from AbstractWorker.getMainWorker
Protected
handleHandle an error and convert it to a string so it can be sent back to the main worker.
- -Message of the error.
-The error raised by the worker.
-Overrides AbstractWorker.handleError
+Overrides AbstractWorker.handleError
Protected
messageInherited from AbstractWorker.messageListener
+Inherited from AbstractWorker.messageListener
Protected
runRun the given function synchronously.
+Runs the given function synchronously.
Input data for the given function.
Inherited from AbstractWorker.run
+Inherited from AbstractWorker.run
Protected
runRun the given function asynchronously.
+Runs the given function asynchronously.
Input data for the given function.
Inherited from AbstractWorker.runAsync
+Inherited from AbstractWorker.runAsync
Optional arguments to pass to the function.
Inherited from AbstractWorker.runInAsyncScope
+Inherited from AbstractWorker.runInAsyncScope
Overrides AbstractWorker.sendToMainWorker
+Overrides AbstractWorker.sendToMainWorker
The same triggerAsyncId
that is passed to the AsyncResource
constructor.
Inherited from AbstractWorker.triggerAsyncId
+Inherited from AbstractWorker.triggerAsyncId
Static
bindBinds the given function to the current execution context.
The returned function will have an asyncResource
property referencing
@@ -455,8 +451,8 @@ the AsyncResource
to which the function is bound.
Optional
thisArg: ThisArgInherited from AbstractWorker.bind
+Inherited from AbstractWorker.bind
Type of data this worker receives from pool's execution. This can only be serializable data.
+