X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=docs%2Fclasses%2FDynamicClusterPool.html;h=33d2afd58c6e9a31091c177e8a41426704b705cf;hb=184d530faf6acf70e116cb4a3fb831938b73e2c0;hp=6383bbff27f10fe587f8d7256ef7c439111292d4;hpb=15e4d8f3cafe9f7412913b0e440921e813bdf3cd;p=poolifier.git diff --git a/docs/classes/DynamicClusterPool.html b/docs/classes/DynamicClusterPool.html index 6383bbff..33d2afd5 100644 --- a/docs/classes/DynamicClusterPool.html +++ b/docs/classes/DynamicClusterPool.html @@ -24,9 +24,9 @@ When the maximum number of workers is reached and workers are busy, an event is

Since

2.0.0

-
+

Type Parameters

-
+
  • Defined in src/pools/cluster/dynamic.ts:15
  • @@ -55,10 +55,10 @@ When the maximum number of workers is reached and workers are busy, an event is

    Properties

    emitter? -filePath -max -numberOfWorkers -opts +filePath +max +numberOfWorkers +opts promiseResponseMap workerChoiceStrategyContext workerNodes @@ -66,10 +66,12 @@ When the maximum number of workers is reached and workers are busy, an event is

    Accessors

    Methods

    @@ -102,9 +104,9 @@ When the maximum number of workers is reached and workers are busy, an event is
  • Constructs a new poolifier dynamic cluster pool.

    -
    +

    Type Parameters

    -
    +
  • Defined in src/pools/cluster/dynamic.ts:27
  • Properties

    @@ -142,42 +144,44 @@ When the maximum number of workers is reached and workers are busy, an event is
    • 'full': Emitted when the pool is dynamic and full.
    • 'busy': Emitted when the pool is busy.
    • +
    • 'error': Emitted when an uncaught error occurs.
    • +
    • 'taskError': Emitted when an error occurs while executing a task.
    -
    - +
  • Defined in src/pools/abstract-pool.ts:47
  • +
    +
    filePath: string

    Path to the worker file.

    -
    - +
  • Defined in src/pools/abstract-pool.ts:82
  • +
    +
    max: number

    Maximum number of workers that can be created by this pool.

    -
    - +
  • Defined in src/pools/cluster/dynamic.ts:29
  • +
    +
    numberOfWorkers: number

    Number of workers that this pool should manage.

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

    Options for this fixed cluster pool.

    +
  • Defined in src/pools/cluster/fixed.ts:57
  • promiseResponseMap: Map<string, PromiseResponseWrapper<Worker, Response>> = ...
    @@ -190,7 +194,7 @@ When the maximum number of workers is reached and workers are busy, an event is
    +
  • Defined in src/pools/abstract-pool.ts:57
  • workerChoiceStrategyContext: WorkerChoiceStrategyContext<Worker, Data, Response>
    @@ -199,7 +203,7 @@ When the maximum number of workers is reached and workers are busy, an event is
    +
  • Defined in src/pools/abstract-pool.ts:67
  • workerNodes: WorkerNode<Worker, Data>[] = []
    @@ -207,7 +211,7 @@ When the maximum number of workers is reached and workers are busy, an event is
    +
  • Defined in src/pools/abstract-pool.ts:44
  • Accessors

    @@ -221,53 +225,75 @@ When the maximum number of workers is reached and workers are busy, an event is

    Returns boolean

    -
    +
  • Defined in src/pools/cluster/dynamic.ts:47
  • +
    -
    +
    + +
    -
    - -
    +
    + +
    -
    - -
    +
    + +
    -
    - -
    +
    + +
    +
  • Defined in src/pools/cluster/dynamic.ts:37
  • +
    + +

    Methods

    @@ -286,13 +312,13 @@ Can be overridden.

    The worker.

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

    The received message.

  • Returns void

    +
  • Defined in src/pools/abstract-pool.ts:464
  • +
  • Defined in src/pools/cluster/fixed.ts:97
  • +
  • Defined in src/pools/abstract-pool.ts:453
  • +
  • Defined in src/pools/abstract-pool.ts:532
  • +
  • Defined in src/pools/abstract-pool.ts:596
  • +
  • Defined in src/pools/cluster/fixed.ts:92
  • +
  • Defined in src/pools/abstract-pool.ts:415
  • +
  • Defined in src/pools/cluster/fixed.ts:73
  • +
  • Defined in src/pools/abstract-pool.ts:325
  • -

    Returns Promise<Response>

    +
  • Defined in src/pools/abstract-pool.ts:380
  • +
  • Defined in src/pools/abstract-pool.ts:371
  • +
  • Defined in src/pools/cluster/fixed.ts:68
  • Returns void

    Returns void

    +
  • Defined in src/pools/cluster/fixed.ts:84
  • Returns void

    +
  • Defined in src/pools/cluster/fixed.ts:79
  • +
  • Defined in src/pools/abstract-pool.ts:337
  • +
  • Defined in src/pools/abstract-pool.ts:284
  • +
  • Defined in src/pools/abstract-pool.ts:314
  • +
  • Defined in src/pools/cluster/fixed.ts:63
  • +

    Returns void

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

    +
    +
  • Defined in src/pools/abstract-pool.ts:629
  • +
  • PoolTypes
  • +
  • WorkerChoiceStrategies
  • +
  • WorkerTypes
  • Generated using TypeDoc

    \ No newline at end of file