X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=docs%2Fclasses%2FDynamicThreadPool.html;h=7f5443f0094c1a8c3b704cce0a765ac4b00e0c56;hb=984910dc4377061815ef8cb33a6dc91dfc35be3c;hp=b9f6083d82587950875877c2962c4f90e735a921;hpb=d33d2d2fed43d102479c38cc28b496872665a90d;p=poolifier.git diff --git a/docs/classes/DynamicThreadPool.html b/docs/classes/DynamicThreadPool.html index b9f6083d..7f5443f0 100644 --- a/docs/classes/DynamicThreadPool.html +++ b/docs/classes/DynamicThreadPool.html @@ -1,4 +1,4 @@ -DynamicThreadPool | poolifier
+DynamicThreadPool | poolifier - v2.6.10
  • Preparing search index...
  • -
  • The search index is not available
poolifier
+
  • The search index is not available
  • poolifier - v2.6.10
    @@ -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,10 @@ When the maximum number of threads is reached and workers are busy, an event is info maxSize minSize +ready +starting type +utilization worker
    @@ -81,6 +84,7 @@ When the maximum number of threads is reached and workers are busy, an event is
    afterTaskExecutionHook afterWorkerSetup beforeTaskExecutionHook +checkDynamicPoolSize createAndSetupDynamicWorker createAndSetupWorker createWorker @@ -140,7 +144,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

    @@ -149,8 +153,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 maximum 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.
    @@ -158,7 +163,7 @@ When the maximum number of threads is reached and workers are busy, an event is
    +
  • Defined in src/pools/abstract-pool.ts:58
  • filePath: string
    @@ -167,7 +172,7 @@ When the maximum number of threads is reached and workers are busy, an event is
    +
  • Defined in src/pools/abstract-pool.ts:96
  • max: number
    @@ -175,7 +180,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
    @@ -184,7 +189,7 @@ When the maximum number of threads is reached and workers are busy, an event is
    +
  • Defined in src/pools/abstract-pool.ts:95
  • @@ -193,7 +198,7 @@ When the maximum number of threads is reached and workers are busy, an event is
    +
  • Defined in src/pools/thread/fixed.ts:46
  • promiseResponseMap: Map<string, PromiseResponseWrapper<Worker, Response>> = ...
    @@ -207,7 +212,7 @@ When the maximum number of threads is reached and workers are busy, an event is
    +
  • Defined in src/pools/abstract-pool.ts:68
  • workerChoiceStrategyContext: WorkerChoiceStrategyContext<Worker, Data, Response>
    @@ -216,16 +221,16 @@ When the maximum number of threads is reached and workers are busy, an event is
    +
  • Defined in src/pools/abstract-pool.ts:76
  • -
    workerNodes: WorkerNode<Worker, Data>[] = []
    +
    workerNodes: IWorkerNode<Worker, Data>[] = []

    Pool worker nodes.

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

    @@ -240,7 +245,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:558
  • +
  • Defined in src/pools/abstract-pool.ts:266
  • +
  • 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

    @@ -342,7 +378,7 @@ Can be overridden.

    +
  • Defined in src/pools/abstract-pool.ts:679
  • +
  • Defined in src/pools/abstract-pool.ts:907
  • +
  • Defined in src/pools/abstract-pool.ts:663
  • +
    + +
    +
  • Defined in src/pools/abstract-pool.ts:990
  • +
  • Defined in src/pools/abstract-pool.ts:924
  • +
  • Defined in src/pools/thread/fixed.ts:68
  • +
  • Defined in src/pools/abstract-pool.ts:618
  • +
  • Defined in src/pools/thread/fixed.ts:57
  • +
  • Defined in src/pools/abstract-pool.ts:523
  • +
  • Defined in src/pools/abstract-pool.ts:583
  • +
  • Defined in src/pools/abstract-pool.ts:574
  • +
  • Defined in src/pools/thread/fixed.ts:52
  • +
  • Defined in src/pools/thread/fixed.ts:63
  • +
  • Defined in src/pools/abstract-pool.ts:535
  • +
  • Defined in src/pools/abstract-pool.ts:493
  • +
  • Defined in src/pools/abstract-pool.ts:512
  • +
  • Defined in src/pools/abstract-pool.ts:647
  • +
  • Defined in src/pools/abstract-pool.ts:1021