X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=docs%2Fclasses%2FDynamicThreadPool.html;h=2009248da1ffaf41654e8aebdeee26e8f78b190a;hb=a97f9c80aa49c6152547fb6fa8de4b0f089c2353;hp=fcd381101e5f9fcb0585834eb15909697474e9de;hpb=afa30fd0dd5bbc5d305cc30be663966a449efc08;p=poolifier.git diff --git a/docs/classes/DynamicThreadPool.html b/docs/classes/DynamicThreadPool.html index fcd38110..2009248d 100644 --- a/docs/classes/DynamicThreadPool.html +++ b/docs/classes/DynamicThreadPool.html @@ -30,12 +30,12 @@ When the maximum number of threads is reached and workers are busy, an event is
@@ -45,7 +45,7 @@ When the maximum number of threads is reached and workers are busy, an event is
+
  • Defined in src/pools/thread/dynamic.ts:15
  • @@ -81,7 +81,7 @@ When the maximum number of threads is reached and workers are busy, an event is
    afterTaskExecutionHook afterWorkerSetup beforeTaskExecutionHook -chooseWorkerNode +createAndSetupDynamicWorker createAndSetupWorker createWorker destroy @@ -90,7 +90,6 @@ When the maximum number of threads is reached and workers are busy, an event is execute internalBusy isMain -registerWorkerMessageListener sendToWorker setTasksQueueOptions setWorkerChoiceStrategy @@ -133,7 +132,7 @@ When the maximum number of threads is reached and workers are busy, an event is
  • -
    opts: PoolOptions<ThreadWorkerWithMessageChannel> = {}
    +
    opts: ThreadPoolOptions = {}

    Options for this dynamic thread pool.

  • @@ -141,7 +140,7 @@ When the maximum number of threads is reached and workers are busy, an event is
    +
  • Defined in src/pools/thread/dynamic.ts:27
  • Properties

    @@ -159,7 +158,7 @@ When the maximum number of threads is reached and workers are busy, an event is
    +
  • Defined in src/pools/abstract-pool.ts:55
  • filePath: string
    @@ -168,7 +167,7 @@ When the maximum number of threads is reached and workers are busy, an event is
    +
  • Defined in src/pools/abstract-pool.ts:88
  • max: number
    @@ -176,7 +175,7 @@ When the maximum number of threads is reached and workers are busy, an event is
    +
  • Defined in src/pools/thread/dynamic.ts:29
  • numberOfWorkers: number
    @@ -185,19 +184,19 @@ When the maximum number of threads is reached and workers are busy, an event is
    +
  • Defined in src/pools/abstract-pool.ts:87
  • -
    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:65
  • -
    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:73
  • -
    workerNodes: WorkerNode<ThreadWorkerWithMessageChannel, Data>[] = []
    +
    workerNodes: WorkerNode<Worker, Data>[] = []

    Pool worker nodes.

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

    @@ -242,7 +240,7 @@ When the maximum number of threads is reached and workers are busy, an event is
    +
  • Defined in src/pools/thread/dynamic.ts:47
  • +
  • Defined in src/pools/abstract-pool.ts:390
  • +
  • Defined in src/pools/abstract-pool.ts:240
  • +
  • Defined in src/pools/thread/dynamic.ts:42
  • +
  • Defined in src/pools/thread/fixed.ts:91
  • +
  • Defined in src/pools/thread/dynamic.ts:37
  • +
  • Defined in src/pools/thread/fixed.ts:86
  • Methods

    @@ -331,12 +329,12 @@ Can be overridden.

    Parameters

    @@ -344,20 +342,20 @@ Can be overridden.

    +
  • Defined in src/pools/abstract-pool.ts:504
  • +
  • Defined in src/pools/abstract-pool.ts:696
  • Returns void

    -
    - +
  • Defined in src/pools/abstract-pool.ts:488
  • +
    +
    +
  • Defined in src/pools/abstract-pool.ts:739
  • +
  • Defined in src/pools/abstract-pool.ts:706
  • +
  • Defined in src/pools/thread/fixed.ts:73
  • +
  • Defined in src/pools/abstract-pool.ts:449
  • +
  • Defined in src/pools/thread/fixed.ts:62
  • +
  • Defined in src/pools/abstract-pool.ts:355
  • +
  • Defined in src/pools/abstract-pool.ts:415
  • +
  • Defined in src/pools/abstract-pool.ts:406
  • -
    - -
    +
  • Defined in src/pools/thread/fixed.ts:57
  • +
  • Defined in src/pools/thread/fixed.ts:68
  • +
  • Defined in src/pools/abstract-pool.ts:367
  • +
  • Defined in src/pools/abstract-pool.ts:322
  • +
  • Defined in src/pools/abstract-pool.ts:344
  • +
  • Defined in src/pools/abstract-pool.ts:472
  • Returns void

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

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

    \ No newline at end of file