X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=docs%2Fclasses%2FDynamicThreadPool.html;h=928ef50d5aa4d6e385e62a2b6ed791968fc7dfc6;hb=88499cf9c298c12aa8235e60d27657f50d3c38ee;hp=fcd381101e5f9fcb0585834eb15909697474e9de;hpb=fddf9cc424b3ace38fd414899c666c76a03c3aff;p=poolifier.git diff --git a/docs/classes/DynamicThreadPool.html b/docs/classes/DynamicThreadPool.html index fcd38110..928ef50d 100644 --- a/docs/classes/DynamicThreadPool.html +++ b/docs/classes/DynamicThreadPool.html @@ -1,4 +1,4 @@ -DynamicThreadPool | poolifier
+DynamicThreadPool | poolifier - v2.6.17
  • Preparing search index...
  • -
  • The search index is not available
poolifier
+
  • The search index is not available
  • poolifier - v2.6.17
    @@ -30,12 +30,12 @@ When the maximum number of threads is reached and workers are busy, an event is
    • 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.

    @@ -45,7 +45,7 @@ When the maximum number of threads is reached and workers are busy, an event is
    • DynamicThreadPool
    +
  • Defined in src/pools/thread/dynamic.ts:15
  • @@ -73,7 +73,9 @@ When the maximum number of threads is reached and workers are busy, an event is info maxSize minSize +ready type +utilization worker
    @@ -81,7 +83,8 @@ When the maximum number of threads is reached and workers are busy, an event is
    afterTaskExecutionHook afterWorkerSetup beforeTaskExecutionHook -chooseWorkerNode +checkDynamicPoolSize +createAndSetupDynamicWorker createAndSetupWorker createWorker destroy @@ -90,7 +93,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 +135,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 +143,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

    @@ -150,8 +152,9 @@ When the maximum number of threads is reached and workers are busy, an event is

    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.
    @@ -159,7 +162,7 @@ When the maximum number of threads is reached and workers are busy, an event is
    +
  • Defined in src/pools/abstract-pool.ts:63
  • filePath: string
    @@ -168,7 +171,7 @@ When the maximum number of threads is reached and workers are busy, an event is
    +
  • Defined in src/pools/abstract-pool.ts:105
  • max: number
    @@ -176,7 +179,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 +188,19 @@ When the maximum number of threads is reached and workers are busy, an event is
    +
  • Defined in src/pools/abstract-pool.ts:104
  • - -

    Options for the pool.

    + +

    Options for this fixed thread pool.

    +
  • Defined in src/pools/thread/fixed.ts:46
  • -
    promiseResponseMap: Map<string, PromiseResponseWrapper<ThreadWorkerWithMessageChannel, Response>> = ...
    +
    promiseResponseMap: Map<string, PromiseResponseWrapper<Worker, Response>> = ...

    The execution response promise map.

    +
  • Defined in src/pools/abstract-pool.ts:73
  • -
    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:81
  • -
    workerNodes: WorkerNode<ThreadWorkerWithMessageChannel, Data>[] = []
    +
    workerNodes: IWorkerNode<Worker, Data>[] = []

    Pool worker nodes.

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

    @@ -242,7 +244,7 @@ When the maximum number of threads is reached and workers are busy, an event is
    +
  • Defined in src/pools/thread/dynamic.ts:48
  • +
  • Defined in src/pools/abstract-pool.ts:590
  • +
  • Defined in src/pools/abstract-pool.ts:293
  • +
  • Defined in src/pools/thread/dynamic.ts:43
  • +
  • Defined in src/pools/thread/fixed.ts:86
  • +
    + +
    +
  • Defined in src/pools/thread/dynamic.ts:38
  • +
    + +
    +
  • Defined in src/pools/thread/fixed.ts:81
  • Methods

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

    Parameters

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

    +
  • Defined in src/pools/abstract-pool.ts:716
  • +
  • Defined in src/pools/abstract-pool.ts:1024
  • Returns void

    -
    - +
  • Defined in src/pools/abstract-pool.ts:695
  • +
    + +
    +
    +
    +
  • Defined in src/pools/abstract-pool.ts:976
  • +
  • Defined in src/pools/abstract-pool.ts:937
  • +
  • Defined in src/pools/thread/fixed.ts:68
  • +
  • Defined in src/pools/abstract-pool.ts:650
  • +
  • Defined in src/pools/thread/fixed.ts:57
  • +
  • Defined in src/pools/abstract-pool.ts:555
  • +
  • Defined in src/pools/abstract-pool.ts:615
  • +
  • Defined in src/pools/abstract-pool.ts:606
  • -
    - -
    +
  • Defined in src/pools/thread/fixed.ts:52
  • +
  • Defined in src/pools/thread/fixed.ts:63
  • +
  • Defined in src/pools/abstract-pool.ts:567
  • +
  • Defined in src/pools/abstract-pool.ts:525
  • +
  • Defined in src/pools/abstract-pool.ts:544
  • +
  • Defined in src/pools/abstract-pool.ts:679
  • Returns void

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

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

    \ No newline at end of file