X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;ds=sidebyside;f=docs%2Finterfaces%2FIPool.html;h=c7323502811497d57439240f1692d47b9ae3f03b;hb=1d9e702392092e351b448175a77c16234eec9212;hp=aa5596f711a877e710877db71812c816ad591700;hpb=bb3f9b66fa2241864d31937eeced22caab83d17e;p=poolifier.git diff --git a/docs/interfaces/IPool.html b/docs/interfaces/IPool.html index aa5596f7..c7323502 100644 --- a/docs/interfaces/IPool.html +++ b/docs/interfaces/IPool.html @@ -14,7 +14,7 @@ -

Interface IPool<Data, Response>

+

Interface IPool<Worker, Data, Response>

Contract definition for a poolifier pool.

@@ -22,19 +22,27 @@

Type Parameters

Hierarchy

@@ -45,7 +53,10 @@

Properties

@@ -63,7 +74,7 @@

Returns Promise<void>

+
  • Defined in src/pools/pool.ts:164
  • emitter?: PoolEmitter
    @@ -75,7 +86,7 @@
    +
  • Defined in src/pools/pool.ts:143
  • execute: ((data: Data) => Promise<Response>)
    @@ -99,7 +110,26 @@

    Returns Promise<Response>

    +
  • Defined in src/pools/pool.ts:160
  • +
    + +
    findFreeWorkerNodeKey: (() => number)
    +
    +

    Type declaration

    +
    setWorkerChoiceStrategy: ((workerChoiceStrategy: "ROUND_ROBIN" | "LESS_USED" | "LESS_BUSY" | "FAIR_SHARE" | "WEIGHTED_ROUND_ROBIN") => void)
    @@ -108,7 +138,7 @@
    +
  • Defined in src/pools/pool.ts:170
  • +
    + +
    type: PoolType
    +

    Pool type.

    +

    If it is 'dynamic', it provides the max property.

    +
    +
    + +
    workerNodes: WorkerNode<Worker, Data>[]
    +

    Pool worker nodes.

    +
    +
  • findFreeWorkerNodeKey
  • +
  • setWorkerChoiceStrategy
  • +
  • type
  • +
  • workerNodes