X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=docs%2Fclasses%2FFixedThreadPool.html;h=a4a272b70f3eca7faa11a45859de6cdf166d38a6;hb=76b46937556ea55049d5c413aa0a77d0c7f47f48;hp=4d36975579ad53bfcae976840e089ed999764353;hpb=aba8d9bd41f1bd46f3cc3863c0c2e74bdfacb7b6;p=poolifier.git diff --git a/docs/classes/FixedThreadPool.html b/docs/classes/FixedThreadPool.html index 4d369755..a4a272b7 100644 --- a/docs/classes/FixedThreadPool.html +++ b/docs/classes/FixedThreadPool.html @@ -1,4 +1,4 @@ -FixedThreadPool | poolifier
+FixedThreadPool | poolifier - v2.6.19
  • Preparing search index...
  • -
  • The search index is not available
poolifier
+
  • The search index is not available
  • poolifier - v2.6.19
    @@ -17,7 +17,6 @@

    Class FixedThreadPool<Data, Response>

    A thread pool with a fixed number of threads.

    -

    It is possible to perform tasks in sync or asynchronous mode as you prefer.

    Author

    Alessandro Pio Ardizio

    @@ -29,24 +28,24 @@
    • 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.

    Hierarchy

    +
  • Defined in src/pools/thread/fixed.ts:34
  • @@ -73,14 +72,17 @@ info maxSize minSize +ready type +utilization worker

    Methods

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

    @@ -145,8 +150,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.
    @@ -154,7 +160,7 @@
    +
  • Defined in src/pools/abstract-pool.ts:64
  • filePath: string
    @@ -163,7 +169,7 @@
    +
  • Defined in src/pools/abstract-pool.ts:106
  • numberOfWorkers: number
    @@ -172,7 +178,7 @@
    +
  • Defined in src/pools/abstract-pool.ts:105
  • @@ -181,10 +187,10 @@
    +
  • Defined in src/pools/thread/fixed.ts:48
  • -
    promiseResponseMap: Map<string, PromiseResponseWrapper<ThreadWorkerWithMessageChannel, Response>> = ...
    +
    promiseResponseMap: Map<string, PromiseResponseWrapper<Worker, Response>> = ...

    The execution response promise map.

    +
  • Defined in src/pools/abstract-pool.ts:74
  • -
    workerChoiceStrategyContext: WorkerChoiceStrategyContext<ThreadWorkerWithMessageChannel, Data, Response>
    +
    workerChoiceStrategyContext: WorkerChoiceStrategyContext<Worker, Data, Response>

    Worker choice strategy context referencing a worker choice algorithm implementation.

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

    Pool worker nodes.

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

    @@ -228,7 +234,7 @@
    +
  • Defined in src/pools/thread/fixed.ts:126
  • +
  • Defined in src/pools/abstract-pool.ts:591
  • +
  • Defined in src/pools/abstract-pool.ts:294
  • +
  • Defined in src/pools/thread/fixed.ts:121
  • +
  • Defined in src/pools/thread/fixed.ts:116
  • +
    + +
    +
  • Defined in src/pools/thread/fixed.ts:106
  • +
    + +
    +
  • Defined in src/pools/thread/fixed.ts:111
  • Methods

    @@ -317,12 +345,12 @@ Can be overridden.

    Parameters

    @@ -330,28 +358,28 @@ Can be overridden.

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

        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

        Returns void

    +
  • Defined in src/pools/abstract-pool.ts:941
  • +
  • Defined in src/pools/abstract-pool.ts:696
  • +
    + +
    +
  • Defined in src/pools/abstract-pool.ts:896
  • +
  • Defined in src/pools/abstract-pool.ts:856
  • +
  • Defined in src/pools/thread/fixed.ts:98
  • +
  • Defined in src/pools/abstract-pool.ts:651
  • +
  • Defined in src/pools/thread/fixed.ts:59
  • +
  • Defined in src/pools/abstract-pool.ts:556
  • +
  • Defined in src/pools/abstract-pool.ts:616
  • +
    + +
    +
    + +
    +
  • Defined in src/pools/abstract-pool.ts:607
  • +
  • Defined in src/pools/thread/fixed.ts:54
  • Returns void

    +
  • Defined in src/pools/thread/fixed.ts:88
  • +
    + +
    +
  • Defined in src/pools/thread/fixed.ts:66
  • +
  • Defined in src/pools/abstract-pool.ts:568
  • +
  • Defined in src/pools/abstract-pool.ts:526
  • +
  • Defined in src/pools/abstract-pool.ts:545
  • +
  • Defined in src/pools/abstract-pool.ts:680
  • Returns void

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

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

    \ No newline at end of file