X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=docs%2Fclasses%2FDynamicThreadPool.html;h=ed6d4a8f3c416b5b31409288811c6536a70e6683;hb=a34454964733f585af19a04f21f9e35eb18c77b1;hp=66f365d333157ae357b5d5c65831a7272cd20251;hpb=ba92b02f642f229cb927ab526148f10107831471;p=poolifier.git diff --git a/docs/classes/DynamicThreadPool.html b/docs/classes/DynamicThreadPool.html index 66f365d3..ed6d4a8f 100644 --- a/docs/classes/DynamicThreadPool.html +++ b/docs/classes/DynamicThreadPool.html @@ -42,7 +42,7 @@ When the maximum number of threads is reached and workers are busy, an event is +
  • Defined in src/pools/thread/dynamic.ts:17
  • @@ -56,17 +56,18 @@ When the maximum number of threads is reached and workers are busy, an event is

    Properties

    Accessors

    @@ -75,20 +76,25 @@ When the maximum number of threads is reached and workers are busy, an event is
    afterPromiseResponseHook afterWorkerSetup beforePromiseResponseHook -chooseWorker +chooseWorkerNode createAndSetupWorker createWorker +dequeueTask destroy destroyWorker +enqueueTask execute -findFreeWorkerKey +findFreeWorkerNodeKey +flushTasksQueue +flushTasksQueueByWorker internalBusy isMain registerWorkerMessageListener -removeWorker +removeWorkerNode sendToWorker setWorkerChoiceStrategy setupHook +tasksQueueLength workerListener
    @@ -129,17 +135,17 @@ When the maximum number of threads is reached and workers are busy, an event is

    Returns DynamicThreadPool<Data, Response>

    +
  • Defined in src/pools/thread/dynamic.ts:29
  • Properties

    emitter?: PoolEmitter
    -

    {@inheritDoc}

    -
    +
  • Defined in src/pools/abstract-pool.ts:33
  • filePath: string
    @@ -147,14 +153,14 @@ When the maximum number of threads is reached and workers are busy, an event is
    -
    - +
  • Defined in src/pools/abstract-pool.ts:68
  • +
    +
    max: number

    Maximum number of threads that can be created by this pool.

    +
  • Defined in src/pools/thread/dynamic.ts:31
  • numberOfWorkers: number
    @@ -162,7 +168,7 @@ When the maximum number of threads is reached and workers are busy, an event is
    +
  • Defined in src/pools/abstract-pool.ts:67
  • opts: PoolOptions<ThreadWorkerWithMessageChannel>
    @@ -170,7 +176,7 @@ When the maximum number of threads is reached and workers are busy, an event is
    +
  • Defined in src/pools/abstract-pool.ts:69
  • promiseResponseMap: Map<string, PromiseResponseWrapper<ThreadWorkerWithMessageChannel, Response>> = ...
    @@ -183,24 +189,24 @@ When the maximum number of threads is reached and workers are busy, an event is
    +
  • Defined in src/pools/abstract-pool.ts:43
  • workerChoiceStrategyContext: WorkerChoiceStrategyContext<ThreadWorkerWithMessageChannel, Data, Response>
    -

    Worker choice strategy instance implementing the worker choice algorithm.

    -

    Default to a strategy implementing a round robin algorithm.

    +

    Worker choice strategy context referencing a worker choice algorithm implementation.

    +

    Default to a round robin algorithm.

    -
    - -
    workers: WorkerType<ThreadWorkerWithMessageChannel>[] = []
    -

    {@inheritDoc}

    -
    +
    + +
    workerNodes: WorkerNode<ThreadWorkerWithMessageChannel, Data>[] = []
    +
    +

    Inherit Doc

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

    @@ -208,45 +214,56 @@ When the maximum number of threads is reached and workers are busy, an event is
    +
  • Defined in src/pools/thread/dynamic.ts:49
  • +
  • Defined in src/pools/thread/dynamic.ts:44
  • +
    + +
    +
  • Defined in src/pools/abstract-pool.ts:156
  • +
  • Defined in src/pools/thread/dynamic.ts:39
  • Methods

    @@ -271,14 +288,14 @@ Can be overridden.

    Returns void

    +
  • Defined in src/pools/abstract-pool.ts:307
  • +
  • Defined in src/pools/thread/fixed.ts:85
  • -
    - +
  • Defined in src/pools/abstract-pool.ts:296
  • +
    +
    +
  • Defined in src/pools/abstract-pool.ts:340
  • +
  • Defined in src/pools/abstract-pool.ts:406
  • +
  • Defined in src/pools/thread/fixed.ts:78
  • +
    + +
    +
  • Defined in src/pools/abstract-pool.ts:259
  • +
  • Defined in src/pools/thread/fixed.ts:54
  • +
    + +
    -
    - +
  • Defined in src/pools/abstract-pool.ts:236
  • +
    +
    +
    + +
    +
  • Defined in src/pools/abstract-pool.ts:563
  • +
    + +
    +
  • Defined in src/pools/abstract-pool.ts:221
  • +
  • Defined in src/pools/thread/fixed.ts:49
  • +
    +
    +
  • Defined in src/pools/abstract-pool.ts:545
  • +
  • Defined in src/pools/thread/fixed.ts:62
  • +
  • Defined in src/pools/abstract-pool.ts:189
  • +
  • Defined in src/pools/abstract-pool.ts:281
  • +
    + +
    +
  • Defined in src/pools/abstract-pool.ts:429
  • Generated using TypeDoc