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

    +