Bump @types/node from 14.14.32 to 14.14.33 (#265)
[poolifier.git] / src / pools / cluster / fixed.ts
index f651d3ade895fdfee56497e642c7e4ce155ead06..b522947f25cb6f9497c7935fdcd131d1747e8b34 100644 (file)
@@ -2,6 +2,7 @@ import { fork, isMaster, setupMaster, Worker } from 'cluster'
 import type { MessageValue } from '../../utility-types'
 import type { PoolOptions } from '../abstract-pool'
 import { AbstractPool } from '../abstract-pool'
+import { PoolType } from '../pool-internal'
 
 /**
  * Options for a poolifier cluster pool.
@@ -84,4 +85,14 @@ export class FixedClusterPool<
     // Listen worker messages.
     this.registerWorkerMessageListener(worker, super.workerListener())
   }
+
+  /** @inheritdoc */
+  public get type (): PoolType {
+    return PoolType.FIXED
+  }
+
+  /** @inheritdoc */
+  public get busy (): boolean {
+    return this.internalGetBusyStatus()
+  }
 }