chore: generate documentation
[poolifier.git] / src / pools / cluster / fixed.ts
index 2e89b3232dccbc321907b02a73b583d650ee1661..d644f2298000fe1b6176f335ff228e51483e9144 100644 (file)
@@ -1,5 +1,5 @@
-import type { ClusterSettings, Worker } from 'cluster'
-import cluster from 'cluster'
+import type { ClusterSettings, Worker } from 'node:cluster'
+import cluster from 'node:cluster'
 import type { MessageValue } from '../../utility-types'
 import { AbstractPool } from '../abstract-pool'
 import type { PoolOptions } from '../pool'
@@ -100,8 +100,13 @@ export class FixedClusterPool<
     return PoolType.FIXED
   }
 
+  /** {@inheritDoc} */
+  public get full (): boolean {
+    return this.workers.length === this.numberOfWorkers
+  }
+
   /** {@inheritDoc} */
   public get busy (): boolean {
-    return this.internalGetBusyStatus()
+    return this.internalBusy()
   }
 }