X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=docs%2Fclasses%2FFixedClusterPool.html;h=4bdb14c01f1a94bc0a9d701fb445676225955730;hb=05a852b826fb54cbab49a196bbd0d123c3d0c367;hp=8dc3e624df12bc9968bb8ba8553a289b33be18fe;hpb=5a94e4b950eaf2234e07f87261ddea1482e839c6;p=poolifier.git diff --git a/docs/classes/FixedClusterPool.html b/docs/classes/FixedClusterPool.html index 8dc3e624..4bdb14c0 100644 --- a/docs/classes/FixedClusterPool.html +++ b/docs/classes/FixedClusterPool.html @@ -1,655 +1,140 @@ -FixedClusterPool | poolifier
-
- -
-
-
-
- -

Class FixedClusterPool<Data, Response>

-
-

A cluster pool with a fixed number of workers.

-

It is possible to perform tasks in sync or asynchronous mode as you prefer.

-

This pool selects the workers in a round robin fashion.

- -

Author

Christopher Quadflieg

- -

Since

2.0.0

-
-
-

Type Parameters

-
    -
  • -

    Data = unknown

    -

    Type of data sent to the worker. This can only be serializable data.

    -
  • -
  • -

    Response = unknown

    -

    Type of response of execution. This can only be serializable data.

    -
-
-

Hierarchy

-
-
-
-
- -
-
-

Constructors

-
- -
    - -
  • -

    Constructs a new poolifier fixed cluster pool.

    -
    -
    -

    Type Parameters

    -
      -
    • -

      Data = unknown

    • -
    • -

      Response = unknown

    -
    -

    Parameters

    -
      -
    • -
      numberOfWorkers: number
      -

      Number of workers for this pool.

      -
    • -
    • -
      filePath: string
      -

      Path to an implementation of a ClusterWorker file, which can be relative or absolute.

      -
    • -
    • -
      opts: ClusterPoolOptions = {}
      -

      Options for this fixed cluster pool.

      -
    -

    Returns FixedClusterPool<Data, Response>

-
-

Properties

-
- -
emitter?: PoolEmitter
-

{@inheritDoc}

-
-
- -
filePath: string
-

Path to the worker-file.

-
-
- -
nextMessageId: number = 0
-

Id of the next message.

-
-
- -
numberOfWorkers: number
-

Number of workers that this pool should manage.

-
-
- - -

Options for this fixed cluster pool.

-
-
- -
promiseMap: Map<number, PromiseWorkerResponseWrapper<Worker, Response>> = ...
-

The promise map.

-

Parameters

  • workerNodeKey: number

    The newly created worker node key.

    +

Returns void

\ No newline at end of file