X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=docs%2Fclasses%2FFixedThreadPool.html;h=c7d211d68f6016a1c3c32768bec4adf1f576cf00;hb=6c15ffb2e59f4b3eaa6aedf0eb27feb2150cfb40;hp=357fe5d09f1c8bdf75a698044475f0895602248e;hpb=3bd6a82e43e11294af91bbd19647944ac740169e;p=poolifier.git diff --git a/docs/classes/FixedThreadPool.html b/docs/classes/FixedThreadPool.html index 357fe5d0..c7d211d6 100644 --- a/docs/classes/FixedThreadPool.html +++ b/docs/classes/FixedThreadPool.html @@ -24,9 +24,9 @@

Since

0.0.1

-
+

Type Parameters

-
+
  • Defined in src/pools/thread/fixed.ts:34
  • @@ -57,9 +57,9 @@

    Properties

    emitter? -filePath -numberOfWorkers -opts +filePath +numberOfWorkers +opts promiseResponseMap workerChoiceStrategyContext workerNodes @@ -67,10 +67,12 @@

    Accessors

    Methods

    @@ -84,7 +86,6 @@ destroyWorker enableTasksQueue execute -findFreeWorkerNodeKey internalBusy isMain registerWorkerMessageListener @@ -100,13 +101,13 @@
    -

    Returns FixedThreadPool<Data, Response>

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

    -
    emitter?: PoolEmitter
    +
    emitter?: PoolEmitter

    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.
    • +
    • 'error': Emitted when an uncaught error occurs.
    • +
    • 'taskError': Emitted when an error occurs while executing a task.
    -
    - -
    filePath: string
    +
  • Defined in src/pools/abstract-pool.ts:47
  • +
    + +
    filePath: string

    Path to the worker file.

    -
    - -
    numberOfWorkers: number
    +
  • Defined in src/pools/abstract-pool.ts:82
  • +
    + +
    numberOfWorkers: number

    Number of workers that this pool should manage.

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

    Options for the pool.

    +
  • Defined in src/pools/abstract-pool.ts:83
  • -
    promiseResponseMap: Map<string, PromiseResponseWrapper<ThreadWorkerWithMessageChannel, Response>> = ...
    +
    promiseResponseMap: Map<string, PromiseResponseWrapper<ThreadWorkerWithMessageChannel, Response>> = ...

    The execution response promise map.

    +
  • Defined in src/pools/abstract-pool.ts:57
  • -
    workerChoiceStrategyContext: WorkerChoiceStrategyContext<ThreadWorkerWithMessageChannel, Data, Response>
    +
    workerChoiceStrategyContext: WorkerChoiceStrategyContext<ThreadWorkerWithMessageChannel, 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:67
  • -
    workerNodes: WorkerNode<ThreadWorkerWithMessageChannel, Data>[] = []
    +
    workerNodes: WorkerNode<ThreadWorkerWithMessageChannel, Data>[] = []

    Pool worker nodes.

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

    @@ -212,59 +215,81 @@

    Returns boolean

    -
    +
  • Defined in src/pools/thread/fixed.ts:120
  • +
    -
    -
    - -
    +
    + +
    +
    + +
    -
    - -
    +
    + +
    -
    - -
    +
    + +
    +
  • Defined in src/pools/thread/fixed.ts:100
  • +
    + +

    Methods

    +
  • Defined in src/pools/abstract-pool.ts:464
  • +
  • Defined in src/pools/thread/fixed.ts:90
  • +
  • Defined in src/pools/abstract-pool.ts:453
  • +
  • Defined in src/pools/abstract-pool.ts:532
  • +
  • Defined in src/pools/abstract-pool.ts:596
  • +
  • Defined in src/pools/thread/fixed.ts:83
  • +
  • Defined in src/pools/abstract-pool.ts:415
  • +
  • Defined in src/pools/thread/fixed.ts:59
  • Returns void

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

    Returns Promise<Response>

    -
    - -
    +
  • Defined in src/pools/abstract-pool.ts:380
  • +
  • Defined in src/pools/abstract-pool.ts:371
  • +
  • Defined in src/pools/thread/fixed.ts:54
  • Returns void

    Returns void

    +
  • Defined in src/pools/thread/fixed.ts:75
  • +
  • Defined in src/pools/thread/fixed.ts:67
  • +
  • Defined in src/pools/abstract-pool.ts:337
  • +
  • Defined in src/pools/abstract-pool.ts:284
  • +
  • Defined in src/pools/abstract-pool.ts:314
  • +
  • Defined in src/pools/abstract-pool.ts:438
  • +

    Returns void

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

    +
    +
  • Defined in src/pools/abstract-pool.ts:629
  • +
  • PoolTypes
  • +
  • WorkerChoiceStrategies
  • +
  • WorkerTypes
  • Generated using TypeDoc

    \ No newline at end of file