X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=docs%2Fclasses%2FClusterWorker.html;h=cc900af0538b1f61747c09fb5e64eae92c50ebce;hb=4b4e53be53af022e65e6373e2773c64baa29406c;hp=ea603c4f1811029915895e0b9ec49393a042c2c8;hpb=cd3135e48c6ba3fb7bdfe3da9ac47ad6805e8797;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