X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=docs%2Fclasses%2FFixedThreadPool.html;h=9eeaa2f9a11602979fe245bed7356cf42bf22d05;hb=c8284c4cf12c3aabc04aa0c382d1494eff8a2698;hp=8557f951795a3a57519febf3110eb65ba2293d64;hpb=c065162cbd0458f984708314dcf5e80c7777077a;p=poolifier.git diff --git a/docs/classes/FixedThreadPool.html b/docs/classes/FixedThreadPool.html index 8557f951..9eeaa2f9 100644 --- a/docs/classes/FixedThreadPool.html +++ b/docs/classes/FixedThreadPool.html @@ -1,4 +1,4 @@ -FixedThreadPool | poolifier - v2.6.18
+FixedThreadPool | poolifier - v2.6.41
  • Preparing search index...
  • -
  • The search index is not available
poolifier - v2.6.18
+
  • The search index is not available
  • poolifier - v2.6.41

    Returns FixedThreadPool<Data, Response>

    +
  • Defined in src/pools/thread/fixed.ts:46
  • Properties

    @@ -146,17 +151,19 @@

    Emitter on which events can be listened to.

    Events that can currently be listened to:

      -
    • '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.
    • +
    • 'busy': Emitted when the number of workers created in the pool has reached the maximum size expected and are executing concurrently their tasks quota.
    • +
    • 'full': Emitted when the pool is dynamic and the number of workers created has reached the maximum size expected.
    • +
    • 'destroy': Emitted when the pool is destroyed.
    • 'error': Emitted when an uncaught error occurs.
    • 'taskError': Emitted when an error occurs while executing a task.
    • +
    • 'backPressure': Emitted when all worker nodes have back pressure (i.e. their tasks queue is full: queue size >= maximum queue size).
    +
  • Defined in src/pools/abstract-pool.ts:68
  • filePath: string
    @@ -165,7 +172,16 @@
    +
  • Defined in src/pools/abstract-pool.ts:117
  • +
    + +
    max?: number
    +

    Dynamic pool maximum size property placeholder.

    +
    +
    numberOfWorkers: number
    @@ -174,7 +190,7 @@
    +
  • Defined in src/pools/abstract-pool.ts:116
  • @@ -183,11 +199,11 @@
    +
  • Defined in src/pools/thread/fixed.ts:49
  • -
    promiseResponseMap: Map<string, PromiseResponseWrapper<Worker, Response>> = ...
    -

    The execution response promise map.

    +
    promiseResponseMap: Map<string, PromiseResponseWrapper<Response>> = ...
    +

    The task execution response promise map.

    +
  • Defined in src/pools/abstract-pool.ts:78
  • workerChoiceStrategyContext: WorkerChoiceStrategyContext<Worker, Data, Response>
    @@ -206,16 +222,16 @@
    +
  • Defined in src/pools/abstract-pool.ts:84
  • - +
    workerNodes: IWorkerNode<Worker, Data>[] = []

    Pool worker nodes.

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

    @@ -230,7 +246,7 @@
    +
  • Defined in src/pools/thread/fixed.ts:135
  • +
  • Defined in src/pools/abstract-pool.ts:689
  • -
    +
  • Defined in src/pools/abstract-pool.ts:350
  • +
    -
    -
    +
  • Defined in src/pools/abstract-pool.ts:562
  • +
    -
    +
  • Defined in src/pools/abstract-pool.ts:555
  • +
  • Defined in src/pools/abstract-pool.ts:507
  • +
  • Defined in src/pools/thread/fixed.ts:125
  • +
  • Defined in src/pools/abstract-pool.ts:524
  • +
  • Defined in src/pools/thread/fixed.ts:130
  • Methods

      - +
    • Hook executed after the worker task execution. Can be overridden.

      @@ -341,41 +360,38 @@ Can be overridden.

      Parameters

      • -
        worker: Worker
        -

        The worker.

        -
        -
      • +
        workerNodeKey: number
        +

        The worker node key.

        +
      • message: MessageValue<Response, unknown>

        The received message.

        -
        -
      +

    Returns void

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

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

      Method hooked up after a worker node has been newly created. Can be overridden.

      Parameters

      • -
        worker: Worker
        -

        The newly created worker.

        -
        -
      +
      workerNodeKey: number
      +

      The newly created worker node key.

      +

    Returns void

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

    Returns void

    +
  • Defined in src/pools/abstract-pool.ts:858
  • -
    - +
  • Defined in src/pools/abstract-pool.ts:187
  • +
    +
    -
    - +
  • Defined in src/pools/abstract-pool.ts:1105
  • +
    +
    +
  • Defined in src/pools/abstract-pool.ts:1061
  • +
  • Defined in src/pools/thread/fixed.ts:117
  • -
    - +
  • Defined in src/pools/abstract-pool.ts:803
  • +
    +

    Returns Promise<void>

    +
  • Defined in src/pools/thread/fixed.ts:60
  • Returns void

    +
  • Defined in src/pools/abstract-pool.ts:643
  • Returns Promise<Response>

    Promise that will be fulfilled when the task is completed.

    +
  • Defined in src/pools/abstract-pool.ts:747
  • +
    + +
    +
    + +
    +
    + +
    +
  • Defined in src/pools/abstract-pool.ts:705
  • +
  • Defined in src/pools/thread/fixed.ts:55
  • +
    + +
    +
    + +
    +
    + +
    +
    + +

    Returns void

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

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

    Returns void

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

    Returns void

    +
  • Defined in src/pools/abstract-pool.ts:629
  • +
  • Defined in src/pools/abstract-pool.ts:842
  • +
  • Defined in src/pools/abstract-pool.ts:1331
  • -

    Generated using TypeDoc

    +

    Generated using TypeDoc

    \ No newline at end of file