X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=docs%2Fclasses%2FFixedClusterPool.html;h=eb5e22d41eda358342853c08d4bb690084cb9b51;hb=4736ba628fabbf7e34e36ef0f55a96e86b7033ac;hp=66464ceca64563474f540816f2da42b3e0a1384e;hpb=797996a92f40d5779cd31314b59462e41d529989;p=poolifier.git diff --git a/docs/classes/FixedClusterPool.html b/docs/classes/FixedClusterPool.html index 66464cec..eb5e22d4 100644 --- a/docs/classes/FixedClusterPool.html +++ b/docs/classes/FixedClusterPool.html @@ -44,7 +44,7 @@ +
  • Defined in src/pools/cluster/fixed.ts:39
  • @@ -58,36 +58,32 @@

    Properties

    Accessors

    Methods

    -
    +
  • Defined in src/pools/cluster/fixed.ts:50
  • Properties

    emitter?: PoolEmitter
    -

    {@inheritDoc}

    -
    +
  • Defined in src/pools/abstract-pool.ts:32
  • filePath: string
    @@ -148,15 +144,7 @@
    -
    - -
    nextMessageId: number = 0
    -

    Id of the next message.

    -
    +
  • Defined in src/pools/abstract-pool.ts:67
  • numberOfWorkers: number
    @@ -164,7 +152,7 @@
    +
  • Defined in src/pools/abstract-pool.ts:66
  • opts: ClusterPoolOptions = {}
    @@ -172,45 +160,37 @@
    -
    - -
    promiseMap: Map<number, PromiseWorkerResponseWrapper<Worker, Response>> = ...
    -

    The promise map.

    +
  • Defined in src/pools/cluster/fixed.ts:53
  • +
    + +
    promiseResponseMap: Map<string, PromiseResponseWrapper<Worker, Response>> = ...
    +

    The promise response map.

    -

    When we receive a message from the worker we get a map entry and resolve/reject the promise based on the message.

    +

    When we receive a message from the worker we get a map entry with the promise resolve/reject bound to the message.

    +
  • Defined in src/pools/abstract-pool.ts:42
  • workerChoiceStrategyContext: WorkerChoiceStrategyContext<Worker, 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.

    +
  • Defined in src/pools/abstract-pool.ts:52
  • -
    workers: Worker[] = []
    -

    {@inheritDoc}

    -
    -
    - -
    workersTasksUsage: Map<Worker, TasksUsage> = ...
    -

    {@inheritDoc}

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

    @@ -218,40 +198,51 @@
    -
    - -
    +
    + +
    +
    + +
    +
  • Defined in src/pools/abstract-pool.ts:163
  • +
  • Defined in src/pools/cluster/fixed.ts:99
  • Methods

    -
    - +
    +
      - +
    • Hook executed after the worker task promise resolution. Can be overridden.

      @@ -260,24 +251,24 @@ Can be overridden.

      Parameters

      • -
        message: MessageValue<Response, unknown>
        -

        The received message.

        +
        worker: Worker
        +

        The worker.

      • -
        promise: PromiseWorkerResponseWrapper<Worker, Response>
        -

        The Promise response.

        +
        message: MessageValue<Response, unknown>
        +

        The received message.

      Returns void

    +
  • Defined in src/pools/abstract-pool.ts:281
  • -
    - +
  • Defined in src/pools/cluster/fixed.ts:93
  • +
    +
    +
  • Defined in src/pools/abstract-pool.ts:270
  • +
  • Defined in src/pools/abstract-pool.ts:310
  • +
  • Defined in src/pools/abstract-pool.ts:356
  • +
  • Defined in src/pools/cluster/fixed.ts:88
  • +
  • Defined in src/pools/abstract-pool.ts:233
  • +
  • Defined in src/pools/cluster/fixed.ts:69
  • -
    - -
    -
    - +
  • Defined in src/pools/abstract-pool.ts:217
  • +
    +
    -
    - -
    -
    - -
    -
    - +
  • Defined in src/pools/abstract-pool.ts:210
  • +
    +
    +
  • Defined in src/pools/abstract-pool.ts:202
  • +
  • Defined in src/pools/cluster/fixed.ts:64
  • +
  • Defined in src/pools/abstract-pool.ts:479
  • +
  • Defined in src/pools/cluster/fixed.ts:75
  • Returns void

    +
  • Defined in src/pools/abstract-pool.ts:178
  • +
  • Defined in src/pools/cluster/fixed.ts:59
  • +
  • Defined in src/pools/abstract-pool.ts:385