X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=docs%2Finterfaces%2FIPool.html;h=42a94ebafa20534278976c4a9223294071645a35;hb=e39450c0889208d6dcde666fc05b95fe7a98ee29;hp=61d1b615339d614f5a4bdc682e20f12d7041e67f;hpb=ec06e4dd01adf7aa4bab470c59da42c19d863d0b;p=poolifier.git diff --git a/docs/interfaces/IPool.html b/docs/interfaces/IPool.html index 61d1b615..42a94eba 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:163
  • emitter?: PoolEmitter
    @@ -75,7 +86,7 @@
    +
  • Defined in src/pools/pool.ts:142
  • execute: ((data: Data) => Promise<Response>)
    @@ -99,7 +110,26 @@

    Returns Promise<Response>

    +
  • Defined in src/pools/pool.ts:159
  • +
    + +
    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:169
  • +
    + +
    type: PoolType
    +

    Pool type.

    +

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

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

    Pool worker nodes.

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