X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=docs%2Fclasses%2FFixedClusterPool.html;h=7cb87fa3afc73f600a7b47574969cd6f8a735f81;hb=8d98e603c79d8d00b2b6a33e5f732701a7466234;hp=d0a02fba56a34d3aabe6ce206e18532fe7ddf551;hpb=8d1797ad15cb2d87ac3c9904ce6df3db45c0c742;p=poolifier.git diff --git a/docs/classes/FixedClusterPool.html b/docs/classes/FixedClusterPool.html index d0a02fba..7cb87fa3 100644 --- a/docs/classes/FixedClusterPool.html +++ b/docs/classes/FixedClusterPool.html @@ -24,9 +24,9 @@

Since

2.0.0

-
+

Type Parameters

-
+
  • Defined in src/pools/cluster/fixed.ts:43
  • @@ -57,9 +57,9 @@

    Properties

    emitter? -filePath -numberOfWorkers -opts +filePath +numberOfWorkers +opts promiseResponseMap workerChoiceStrategyContext workerNodes @@ -67,10 +67,12 @@

    Accessors

    Methods

    @@ -84,7 +86,6 @@ destroyWorker enableTasksQueue execute -findFreeWorkerNodeKey internalBusy isMain registerWorkerMessageListener @@ -104,9 +105,9 @@
  • Constructs a new poolifier fixed cluster pool.

    -
    +

    Type Parameters

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

    @@ -140,35 +141,37 @@
    • '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
  • +
    +
    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>> = ...
    @@ -181,7 +184,7 @@
    +
  • Defined in src/pools/abstract-pool.ts:57
  • workerChoiceStrategyContext: WorkerChoiceStrategyContext<Worker, Data, Response>
    @@ -190,7 +193,7 @@
    +
  • Defined in src/pools/abstract-pool.ts:67
  • workerNodes: WorkerNode<Worker, Data>[] = []
    @@ -198,7 +201,7 @@
    +
  • Defined in src/pools/abstract-pool.ts:44
  • Accessors

    @@ -212,53 +215,75 @@

    Returns boolean

    -
    +
  • Defined in src/pools/cluster/fixed.ts:123
  • +
    -
    +
    + +
    -
    - -
    +
    + +
    -
    - -
    +
    + +
    -
    - -
    +
    + +
    +
  • Defined in src/pools/cluster/fixed.ts:103
  • +
    + +

    Methods

    @@ -277,13 +302,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