X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;ds=sidebyside;f=docs%2Fclasses%2FClusterWorker.html;h=cc900af0538b1f61747c09fb5e64eae92c50ebce;hb=refs%2Ftags%2Fv3.0.10;hp=ea603c4f1811029915895e0b9ec49393a042c2c8;hpb=273b76d87560482b4114668a705e42d54b3ce3b0;p=poolifier.git diff --git a/docs/classes/ClusterWorker.html b/docs/classes/ClusterWorker.html index ea603c4f..cc900af0 100644 --- a/docs/classes/ClusterWorker.html +++ b/docs/classes/ClusterWorker.html @@ -7,7 +7,7 @@ but the minimum number of workers will be guaranteed.

Since

2.0.0

Type Parameters

Hierarchy

Constructors

Hierarchy

Constructors

Properties

activeInterval? isMain lastTaskTimestamp @@ -37,55 +37,55 @@ but the minimum number of workers will be guaranteed.

setDefaultTaskFunction triggerAsyncId bind -

Constructors

  • Constructs a new poolifier cluster worker.

    +

Constructors

Properties

activeInterval?: Timeout

Handler id of the activeInterval worker activity check.

-
isMain: boolean

Whether this is the main worker or not.

-
lastTaskTimestamp: number

Timestamp of the last task processed by this worker.

-
opts: WorkerOptions = DEFAULT_WORKER_OPTIONS

Options for the worker.

-
statistics: WorkerStatistics

Performance statistics computation requirements.

-
taskFunctions: Map<string, TaskFunction<Data, Response>>

Task function(s) processed by the worker when the pool's execution function is invoked.

-

Accessors

Methods

Returns ClusterWorker<Data, Response>

Properties

activeInterval?: Timeout

Handler id of the activeInterval worker activity check.

+
isMain: boolean

Whether this is the main worker or not.

+
lastTaskTimestamp: number

Timestamp of the last task processed by this worker.

+
opts: WorkerOptions = DEFAULT_WORKER_OPTIONS

Options for the worker.

+
statistics: WorkerStatistics

Performance statistics computation requirements.

+
taskFunctions: Map<string, TaskFunction<Data, Response>>

Task function(s) processed by the worker when the pool's execution function is invoked.

+

Accessors

Methods

Returns void

Returns void

Returns void

Returns void

Returns Result

Since

v9.6.0

-

Returns void

Returns void