X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=docs%2Fclasses%2FDynamicClusterPool.html;h=b8ddba0c1dcc0ef39549ef7cedfacdbe7e9a64e8;hb=70353024c44987c467dadcec306c699ce4ae1f06;hp=53242a4961ac606d00edf78b736aea361a0beb91;hpb=938d9c678aa8e70e5642feffb90604cf25c993fe;p=poolifier.git diff --git a/docs/classes/DynamicClusterPool.html b/docs/classes/DynamicClusterPool.html index 53242a49..b8ddba0c 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:16
  • @@ -69,6 +69,7 @@ When the maximum number of workers is reached and workers are busy, an event is full numberOfQueuedTasks numberOfRunningTasks +size type
    @@ -102,9 +103,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:28
  • Properties

    @@ -142,11 +143,12 @@ 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 error occurs.
    +
  • Defined in src/pools/abstract-pool.ts:44
  • filePath: string
    @@ -154,14 +156,14 @@ When the maximum number of workers is reached and workers are busy, an event is
    +
  • Defined in src/pools/abstract-pool.ts:79
  • max: number

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

    +
  • Defined in src/pools/cluster/dynamic.ts:30
  • numberOfWorkers: number
    @@ -169,7 +171,7 @@ When the maximum number of workers is reached and workers are busy, an event is
    +
  • Defined in src/pools/abstract-pool.ts:78
  • opts: ClusterPoolOptions = {}
    @@ -177,7 +179,7 @@ When the maximum number of workers is reached and workers are busy, an event is
    +
  • Defined in src/pools/cluster/fixed.ts:53
  • promiseResponseMap: Map<string, PromiseResponseWrapper<Worker, Response>> = ...
    @@ -190,7 +192,7 @@ When the maximum number of workers is reached and workers are busy, an event is
    +
  • Defined in src/pools/abstract-pool.ts:54
  • workerChoiceStrategyContext: WorkerChoiceStrategyContext<Worker, Data, Response>
    @@ -199,7 +201,7 @@ When the maximum number of workers is reached and workers are busy, an event is
    +
  • Defined in src/pools/abstract-pool.ts:64
  • workerNodes: WorkerNode<Worker, Data>[] = []
    @@ -207,7 +209,7 @@ When the maximum number of workers is reached and workers are busy, an event is
    +
  • Defined in src/pools/abstract-pool.ts:41
  • Accessors

    @@ -221,7 +223,7 @@ When the maximum number of workers is reached and workers are busy, an event is

    Returns boolean

    +
  • Defined in src/pools/cluster/dynamic.ts:53
  • +
  • Defined in src/pools/cluster/dynamic.ts:48
  • +
  • Defined in src/pools/abstract-pool.ts:230
  • +
  • Defined in src/pools/abstract-pool.ts:220
  • +
    + +
    +
  • Defined in src/pools/cluster/dynamic.ts:38
  • Methods

    @@ -286,13 +299,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:430
  • +
  • Defined in src/pools/cluster/fixed.ts:93
  • +
  • Defined in src/pools/abstract-pool.ts:419
  • +
  • Defined in src/pools/abstract-pool.ts:498
  • +
  • Defined in src/pools/abstract-pool.ts:561
  • +
  • Defined in src/pools/cluster/fixed.ts:88
  • +
  • Defined in src/pools/abstract-pool.ts:382
  • +
  • Defined in src/pools/cluster/fixed.ts:69
  • +
  • Defined in src/pools/abstract-pool.ts:294
  • -

    Returns Promise<Response>

    +
  • Defined in src/pools/abstract-pool.ts:347
  • +
  • Defined in src/pools/abstract-pool.ts:338
  • +
  • Defined in src/pools/cluster/fixed.ts:64
  • Returns void

    Returns void

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

    +
  • Defined in src/pools/cluster/fixed.ts:75
  • +
  • Defined in src/pools/abstract-pool.ts:306
  • +
  • Defined in src/pools/abstract-pool.ts:253
  • +
  • Defined in src/pools/abstract-pool.ts:283
  • +
  • Defined in src/pools/cluster/fixed.ts:59
  • +

    Returns void

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

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