X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=docs%2Finterfaces%2FIPool.html;h=c7323502811497d57439240f1692d47b9ae3f03b;hb=1d9e702392092e351b448175a77c16234eec9212;hp=61d1b615339d614f5a4bdc682e20f12d7041e67f;hpb=812ad701baefad24cad2df8f9a60bf4d581d8697;p=poolifier.git diff --git a/docs/interfaces/IPool.html b/docs/interfaces/IPool.html index 61d1b615..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