X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=docs%2Fclasses%2FFixedThreadPool.html;h=f7cafbc950950bd52d36e125503c52ace91becee;hb=f7d15c1217381b306300beb7926b42fde93bc579;hp=f2bd8f7c02c44eeb3d3b2001c782a4b32c53e750;hpb=85bb5e488cb5adb8fef806e1f3fd9f85c525713e;p=poolifier.git diff --git a/docs/classes/FixedThreadPool.html b/docs/classes/FixedThreadPool.html index f2bd8f7c..f7cafbc9 100644 --- a/docs/classes/FixedThreadPool.html +++ b/docs/classes/FixedThreadPool.html @@ -1,13 +1,13 @@ -FixedThreadPool | poolifier - v2.6.30
+FixedThreadPool | poolifier - v2.7.0
-
+
  • The search index is not available
  • poolifier - v2.7.0 +
    @@ -45,19 +45,19 @@ +
  • Defined in src/pools/thread/fixed.ts:35
  • - +

    Constructors

    - +
    +
  • Defined in src/pools/thread/fixed.ts:46
  • Properties

    @@ -155,18 +160,18 @@

    Events that can currently be listened to:

    • '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.
    • +
    • 'busy': Emitted when the number of workers created in the pool has reached the maximum size expected and are executing concurrently their tasks quota.
    • 'full': Emitted when the pool is dynamic and the number of workers created has reached the maximum size expected.
    • -
    • 'destroy': Emitted when the pool is destroyed.
    • +
    • 'destroy': Emitted when the pool is destroyed.
    • 'error': Emitted when an uncaught error occurs.
    • 'taskError': Emitted when an error occurs while executing a task.
    • -
    • 'backPressure': Emitted when all worker nodes have back pressure (i.e. their tasks queue is full: queue size >= pool maximum size^2).
    • +
    • 'backPressure': Emitted when all worker nodes have back pressure (i.e. their tasks queue is full: queue size >= maximum queue size).
    +
  • Defined in src/pools/abstract-pool.ts:69
  • filePath: string
    @@ -175,7 +180,7 @@
    +
  • Defined in src/pools/abstract-pool.ts:124
  • max?: number
    @@ -184,7 +189,7 @@
    +
  • Defined in src/pools/abstract-pool.ts:93
  • numberOfWorkers: number
    @@ -193,7 +198,7 @@
    +
  • Defined in src/pools/abstract-pool.ts:123
  • @@ -202,11 +207,11 @@
    +
  • Defined in src/pools/thread/fixed.ts:49
  • promiseResponseMap: Map<string, PromiseResponseWrapper<Response>> = ...
    -

    The task execution response promise map.

    +

    The task execution response promise map:

    +
  • Defined in src/pools/abstract-pool.ts:78
  • workerChoiceStrategyContext: WorkerChoiceStrategyContext<Worker, Data, Response>
    @@ -225,7 +230,7 @@
    +
  • Defined in src/pools/abstract-pool.ts:84
  • workerNodes: IWorkerNode<Worker, Data>[] = []
    @@ -234,7 +239,7 @@
    +
  • Defined in src/pools/abstract-pool.ts:66
  • Accessors

    @@ -249,7 +254,7 @@
    +
  • Defined in src/pools/thread/fixed.ts:134
  • +
  • Defined in src/pools/abstract-pool.ts:732
  • +
  • Defined in src/pools/abstract-pool.ts:352
  • +
  • Defined in src/pools/abstract-pool.ts:565
  • +
  • Defined in src/pools/abstract-pool.ts:558
  • +
  • Defined in src/pools/abstract-pool.ts:510
  • +
  • Defined in src/pools/thread/fixed.ts:124
  • +
  • Defined in src/pools/abstract-pool.ts:527
  • +
  • Defined in src/pools/thread/fixed.ts:129
  • Methods

    +
    + +
    +
  • Defined in src/pools/abstract-pool.ts:1090
  • +
  • Defined in src/pools/abstract-pool.ts:1374
  • +
  • Defined in src/pools/abstract-pool.ts:1060
  • +
  • Defined in src/pools/abstract-pool.ts:197
  • +
  • Defined in src/pools/abstract-pool.ts:1307
  • +
  • Defined in src/pools/abstract-pool.ts:1263
  • +
  • Defined in src/pools/thread/fixed.ts:116
  • +
  • Defined in src/pools/abstract-pool.ts:1000
  • +
  • Defined in src/pools/thread/fixed.ts:60
    • -

      Enables/disables the worker tasks queue in this pool.

      +

      Enables/disables the worker node tasks queue in this pool.

      Parameters

      • enable: boolean
        -

        Whether to enable or disable the worker tasks queue.

        +

        Whether to enable or disable the worker node tasks queue.

      • Optional tasksQueueOptions: TasksQueueOptions
        -

        The worker tasks queue options.

        +

        The worker node tasks queue options.

      Returns void

    +
  • Defined in src/pools/abstract-pool.ts:646
  • +
  • Defined in src/pools/abstract-pool.ts:930
  • +
  • Defined in src/pools/abstract-pool.ts:1697
  • +
  • Defined in src/pools/abstract-pool.ts:1613
  • +
    + +
      + +
    • +

      Whether the specified task function exists in this pool.

      +
      +
      +

      Parameters

      +
        +
      • +
        name: string
        +

        The name of the task function.

        +
        +
      +

      Returns boolean

      true if the task function exists, false otherwise.

      + +
    +
  • Defined in src/pools/abstract-pool.ts:1655
  • +
  • Defined in src/pools/abstract-pool.ts:748
  • -
    - +
  • Defined in src/pools/thread/fixed.ts:55
  • +
    +
    +
  • Defined in src/pools/abstract-pool.ts:895
  • +
  • Defined in src/pools/thread/fixed.ts:106
  • +
    + +
      + +
    • +

      Removes a task function from this pool.

      +
      +
      +

      Parameters

      +
        +
      • +
        name: string
        +

        The name of the task function.

        +
        +
      +

      Returns Promise<boolean>

      true if the task function was removed, false otherwise.

      + +
      - +
    • Parameters

      • -
        workerNodeKey: number
      • -
      • -
        workerId: number
      +
      workerNodeKey: number

    Returns Promise<void>

    +
  • Defined in src/pools/abstract-pool.ts:1010
  • +
  • Defined in src/pools/thread/fixed.ts:91
  • +
  • Defined in src/pools/thread/fixed.ts:77
  • +
    + +
    +
  • Defined in src/pools/abstract-pool.ts:660
  • +
  • Defined in src/pools/abstract-pool.ts:613
  • +
  • Defined in src/pools/abstract-pool.ts:632
  • +
  • Defined in src/pools/abstract-pool.ts:1044
  • +
    + +
    +
  • Defined in src/pools/abstract-pool.ts:1525
  • @@ -911,6 +1020,7 @@ Can be overridden.

  • type
  • utilization
  • worker
  • +
  • addTaskFunction
  • afterTaskExecutionHook
  • afterWorkerNodeSetup
  • beforeTaskExecutionHook
  • @@ -924,82 +1034,48 @@ Can be overridden.

  • execute
  • flushTasksQueue
  • getWorkerInfo
  • +
  • hasTaskFunction
  • hasWorkerNodeBackPressure
  • internalBusy
  • isMain
  • -
  • listTaskFunctions
  • +
  • listTaskFunctionNames
  • registerWorkerMessageListener
  • +
  • removeTaskFunction
  • sendKillMessageToWorker
  • sendStartupMessageToWorker
  • sendToWorker
  • +
  • setDefaultTaskFunction
  • setTasksQueueOptions
  • setWorkerChoiceStrategy
  • setWorkerChoiceStrategyOptions
  • setupHook
  • +
  • start
  • workerListener
  • +
    -

    Generated using TypeDoc

    -
    \ No newline at end of file +

    Generated using TypeDoc

    +
    \ No newline at end of file