X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;ds=sidebyside;f=docs%2Fclasses%2FFixedThreadPool.html;h=5692b8d6161266d01e2f1ba2976630bfa329fa59;hb=20ebfb03d96dc805e59643cf1f90667545a3fef2;hp=a1fecefd0d80aef3fcc6686da10fdc2d0c0537c6;hpb=fddf9cc424b3ace38fd414899c666c76a03c3aff;p=poolifier.git diff --git a/docs/classes/FixedThreadPool.html b/docs/classes/FixedThreadPool.html index a1fecefd..5692b8d6 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

  • -
    opts: PoolOptions<ThreadWorkerWithMessageChannel> = {}
    +
    opts: ThreadPoolOptions = {}

    Options for this fixed thread pool.

  • @@ -137,7 +136,7 @@
    +
  • Defined in src/pools/thread/fixed.ts:48
  • Properties

    @@ -155,7 +154,7 @@
    +
  • Defined in src/pools/abstract-pool.ts:65
  • filePath: string
    @@ -164,7 +163,7 @@
    +
  • Defined in src/pools/abstract-pool.ts:103
  • numberOfWorkers: number
    @@ -173,19 +172,19 @@
    +
  • Defined in src/pools/abstract-pool.ts:102
  • -
    opts: PoolOptions<ThreadWorkerWithMessageChannel>
    -

    Options for the pool.

    + +

    Options for this fixed thread pool.

    +
  • 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:75
  • -
    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:83
  • -
    workerNodes: WorkerNode<ThreadWorkerWithMessageChannel, Data>[] = []
    +
    workerNodes: WorkerNode<Worker, Data>[] = []

    Pool worker nodes.

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

    @@ -230,7 +228,7 @@
    +
  • Defined in src/pools/thread/fixed.ts:101
  • +
  • Defined in src/pools/abstract-pool.ts:452
  • +
  • Defined in src/pools/abstract-pool.ts:257
  • +
  • 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,32 +356,32 @@ Can be overridden.

    -
    +
  • Defined in src/pools/abstract-pool.ts:572
  • +
    -
    +
  • Defined in src/pools/abstract-pool.ts:764
  • Returns void

    -
    - +
  • Defined in src/pools/abstract-pool.ts:556
  • +
    +
    +
  • Defined in src/pools/abstract-pool.ts:834
  • +
  • Defined in src/pools/abstract-pool.ts:774
  • +
  • Defined in src/pools/thread/fixed.ts:73
  • +
  • Defined in src/pools/abstract-pool.ts:511
  • +
  • Defined in src/pools/thread/fixed.ts:62
  • +
  • Defined in src/pools/abstract-pool.ts:417
  • +
  • Defined in src/pools/abstract-pool.ts:477
  • +
  • Defined in src/pools/abstract-pool.ts:468
  • -
    - -
    +
  • Defined in src/pools/thread/fixed.ts:57
  • +
  • Defined in src/pools/thread/fixed.ts:68
  • +
  • Defined in src/pools/abstract-pool.ts:429
  • +
  • Defined in src/pools/abstract-pool.ts:384
  • +
  • Defined in src/pools/abstract-pool.ts:406
  • +
  • Defined in src/pools/abstract-pool.ts:540
  • Returns void

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

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

    \ No newline at end of file