X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=docs%2Fclasses%2FFixedThreadPool.html;h=1e65a7fdca6ca5274075afd5331cd891a7037aae;hb=ac2cb9e206b5e67cc52124eb334507f5dce230d5;hp=b1f5eaf91f2efb1311489f54d5a0d838f30a6e1b;hpb=f05afd162e34836a52c48b05781750e3421424d8;p=poolifier.git diff --git a/docs/classes/FixedThreadPool.html b/docs/classes/FixedThreadPool.html index b1f5eaf9..1e65a7fd 100644 --- a/docs/classes/FixedThreadPool.html +++ b/docs/classes/FixedThreadPool.html @@ -17,8 +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.

-

This pool selects the threads in a round robin fashion.

Author

Alessandro Pio Ardizio

@@ -30,24 +28,24 @@

Hierarchy

+
  • Defined in src/pools/thread/fixed.ts:37
  • @@ -74,15 +72,17 @@ info maxSize minSize +runTime type +utilization worker

    Methods

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

    @@ -155,7 +154,7 @@
    +
  • Defined in src/pools/abstract-pool.ts:58
  • filePath: string
    @@ -164,7 +163,7 @@
    +
  • Defined in src/pools/abstract-pool.ts:96
  • numberOfWorkers: number
    @@ -173,7 +172,7 @@
    +
  • Defined in src/pools/abstract-pool.ts:95
  • opts: ThreadPoolOptions = {}
    @@ -182,10 +181,10 @@
    +
  • Defined in src/pools/thread/fixed.ts:51
  • -
    promiseResponseMap: Map<string, PromiseResponseWrapper<ThreadWorkerWithMessageChannel, Response>> = ...
    +
    promiseResponseMap: Map<string, PromiseResponseWrapper<Worker, Response>> = ...

    The execution response promise map.

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

    Worker choice strategy context referencing a worker choice algorithm implementation.

    -

    Default to a round robin algorithm.

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

    Pool worker nodes.

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

    @@ -230,7 +228,7 @@
    +
  • Defined in src/pools/thread/fixed.ts:101
  • +
  • Defined in src/pools/abstract-pool.ts:441
  • +
  • Defined in src/pools/abstract-pool.ts:250
  • +
  • Defined in src/pools/thread/fixed.ts:96
  • +
  • Defined in src/pools/thread/fixed.ts:91
  • +
    + +
    +
  • Defined in src/pools/thread/fixed.ts:81
  • +
    + +
    +
  • Defined in src/pools/thread/fixed.ts:86
  • Methods

    @@ -319,12 +343,12 @@ Can be overridden.

    Parameters

    @@ -332,28 +356,28 @@ Can be overridden.

    -
    +
  • Defined in src/pools/abstract-pool.ts:555
  • +
    -
    +
  • Defined in src/pools/abstract-pool.ts:747
  • -
    - +
  • Defined in src/pools/abstract-pool.ts:539
  • +
    +
    +
  • Defined in src/pools/abstract-pool.ts:790
  • +
  • Defined in src/pools/abstract-pool.ts:757
  • +
  • Defined in src/pools/thread/fixed.ts:73
  • +
  • Defined in src/pools/abstract-pool.ts:500
  • +
  • Defined in src/pools/thread/fixed.ts:62
  • +
  • Defined in src/pools/abstract-pool.ts:406
  • +
  • Defined in src/pools/abstract-pool.ts:466
  • +
  • Defined in src/pools/abstract-pool.ts:457
  • -
    - -
    +
  • Defined in src/pools/thread/fixed.ts:57
  • +
  • Defined in src/pools/thread/fixed.ts:68
  • +
  • Defined in src/pools/abstract-pool.ts:418
  • +
  • Defined in src/pools/abstract-pool.ts:373
  • +
  • Defined in src/pools/abstract-pool.ts:395
  • +
  • Defined in src/pools/abstract-pool.ts:523
  • Returns void

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

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

    \ No newline at end of file