X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;ds=inline;f=docs%2Finterfaces%2FIPool.html;h=0b232f29be2d00227a28ed520f67771f3a571334;hb=6c525543a7ed67a926b7c1f4bf98985aaad1f088;hp=aa5596f711a877e710877db71812c816ad591700;hpb=bb3f9b66fa2241864d31937eeced22caab83d17e;p=poolifier.git diff --git a/docs/interfaces/IPool.html b/docs/interfaces/IPool.html index aa5596f7..0b232f29 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,6 +22,10 @@

Type Parameters

+
+

Implemented by

+
+
  • Defined in src/pools/pool.ts:117
  • @@ -42,15 +50,28 @@

    Properties

    +
    + +
    busy: boolean
    +

    Whether the pool is busy or not.

    +

    The pool busyness boolean status.

    +
    - +
    destroy: (() => Promise<void>)

    Type declaration

    @@ -63,7 +84,7 @@

    Returns Promise<void>

    +
  • Defined in src/pools/pool.ts:173
  • emitter?: PoolEmitter
    @@ -75,7 +96,7 @@
    +
  • Defined in src/pools/pool.ts:140
  • execute: ((data: Data) => Promise<Response>)
    @@ -99,7 +120,34 @@

    Returns Promise<Response>

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

    Type declaration

    +
    +
    + +
    full: boolean
    +

    Whether the pool is full or not.

    +

    The pool filling boolean status.

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

    Pool type.

    +

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

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

    Pool worker nodes.

    +