X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=docs%2Fclasses%2FFixedClusterPool.html;h=becf83d83cb2b9d6db65d63c8e1fc02522d3a0d2;hb=68887e30ceca3df78b70e0b8f1b262a76f2d7cd8;hp=88503f4b01c351be97f5300d28499c699e150755;hpb=afa30fd0dd5bbc5d305cc30be663966a449efc08;p=poolifier.git diff --git a/docs/classes/FixedClusterPool.html b/docs/classes/FixedClusterPool.html index 88503f4b..becf83d8 100644 --- a/docs/classes/FixedClusterPool.html +++ b/docs/classes/FixedClusterPool.html @@ -1,4 +1,4 @@ -FixedClusterPool | poolifier
+FixedClusterPool | poolifier - v2.6.12
  • Preparing search index...
  • -
  • The search index is not available
poolifier
+
  • The search index is not available
  • poolifier - v2.6.12
    @@ -17,8 +17,6 @@

    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

    @@ -30,12 +28,12 @@
    • Data = unknown

      -

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

      +

      Type of data sent to the worker. This can only be structured-cloneable data.

    • Response = unknown

      -

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

      +

      Type of execution response. This can only be structured-cloneable data.

    @@ -47,7 +45,7 @@
    +
  • Defined in src/pools/cluster/fixed.ts:33
  • @@ -74,15 +72,19 @@ info maxSize minSize +ready +starting type +utilization worker

    Methods

    +
  • Defined in src/pools/cluster/fixed.ts:44
  • Properties

    @@ -146,8 +147,9 @@

    Emitter on which events can be listened to.

    Events that can currently be listened to:

      -
    • 'full': Emitted when the pool is dynamic and full.
    • -
    • 'busy': Emitted when the pool is busy.
    • +
    • 'full': Emitted when the pool is dynamic and the number of workers created has reached the maximum size expected.
    • +
    • 'ready': Emitted when the number of workers created in the pool has reached the minimum size expected and are ready.
    • +
    • 'busy': Emitted when the number of workers created in the pool has reached the maximum size expected and are executing at least one task.
    • 'error': Emitted when an uncaught error occurs.
    • 'taskError': Emitted when an error occurs while executing a task.
    @@ -155,7 +157,7 @@
    +
  • Defined in src/pools/abstract-pool.ts:59
  • filePath: string
    @@ -164,7 +166,7 @@
    +
  • Defined in src/pools/abstract-pool.ts:97
  • numberOfWorkers: number
    @@ -173,7 +175,7 @@
    +
  • Defined in src/pools/abstract-pool.ts:96
  • @@ -182,7 +184,7 @@
    +
  • Defined in src/pools/cluster/fixed.ts:47
  • promiseResponseMap: Map<string, PromiseResponseWrapper<Worker, Response>> = ...
    @@ -196,26 +198,25 @@
    +
  • Defined in src/pools/abstract-pool.ts:69
  • workerChoiceStrategyContext: WorkerChoiceStrategyContext<Worker, Data, Response>

    Worker choice strategy context referencing a worker choice algorithm implementation.

    -

    Default to a round robin algorithm.

    +
  • Defined in src/pools/abstract-pool.ts:77
  • -
    workerNodes: WorkerNode<Worker, Data>[] = []
    +
    workerNodes: IWorkerNode<Worker, Data>[] = []

    Pool worker nodes.

    +
  • Defined in src/pools/abstract-pool.ts:56
  • Accessors

    @@ -230,7 +231,7 @@
    +
  • Defined in src/pools/cluster/fixed.ts:102
  • +
  • Defined in src/pools/abstract-pool.ts:563
  • +
  • Defined in src/pools/abstract-pool.ts:269
  • +
  • Defined in src/pools/cluster/fixed.ts:97
  • +
  • Defined in src/pools/cluster/fixed.ts:92
  • +
    + +
    +
    + +
    +
  • Defined in src/pools/cluster/fixed.ts:82
  • +
    + +
    +
  • Defined in src/pools/cluster/fixed.ts:87
  • Methods

    @@ -324,7 +356,7 @@ Can be overridden.

  • -
    message: MessageValue<Response, Worker | MessagePort>
    +
    message: MessageValue<Response, unknown>

    The received message.

  • @@ -332,14 +364,14 @@ Can be overridden.

    -
    +
  • Defined in src/pools/abstract-pool.ts:689
  • +
    -
      +
      • -

        Function that can be hooked up when a worker has been newly created and moved to the pool worker nodes.

        -

        Can be used to update the maxListeners or binding the main-worker<->worker connection if not bind by default.

        +

        Function that can be hooked up when a worker has been newly created and moved to the pool worker nodes. +Can be overridden.

        Parameters

        @@ -351,13 +383,13 @@ Can be overridden.

      Returns void

    +
  • Defined in src/pools/abstract-pool.ts:924
  • Returns void

    -
    - +
  • Defined in src/pools/abstract-pool.ts:668
  • +
    + +
    +
    +
    +
  • Defined in src/pools/abstract-pool.ts:1007
  • +
  • Defined in src/pools/abstract-pool.ts:941
  • +
  • Defined in src/pools/cluster/fixed.ts:77
  • +
  • Defined in src/pools/abstract-pool.ts:623
  • +
  • Defined in src/pools/cluster/fixed.ts:63
  • +
  • Defined in src/pools/abstract-pool.ts:528
  • +
  • Defined in src/pools/abstract-pool.ts:588
  • +
  • Defined in src/pools/abstract-pool.ts:579
  • -
    - -
    +
  • Defined in src/pools/cluster/fixed.ts:58
  • @@ -583,7 +599,7 @@ Can be overridden.

    +
  • Defined in src/pools/cluster/fixed.ts:72
  • +
  • Defined in src/pools/abstract-pool.ts:540
  • +
  • Defined in src/pools/abstract-pool.ts:498
  • +
  • Defined in src/pools/abstract-pool.ts:517
  • +
  • Defined in src/pools/cluster/fixed.ts:53
  • Returns void

    The listener function to execute when a message is received from a worker.

    +
  • Defined in src/pools/abstract-pool.ts:1038
  • +
  • WorkerTypes
  • +
  • availableParallelism
  • Generated using TypeDoc

    \ No newline at end of file