-import type { ClusterSettings, Worker } from 'node:cluster'
-import cluster from 'node:cluster'
+import cluster, { type ClusterSettings, type Worker } from 'node:cluster'
import type { MessageValue } from '../../utility-types'
import { AbstractPool } from '../abstract-pool'
import {
public constructor (
numberOfWorkers: number,
filePath: string,
- public readonly opts: ClusterPoolOptions = {}
+ protected readonly opts: ClusterPoolOptions = {}
) {
super(numberOfWorkers, filePath, opts)
}
}
/** @inheritDoc */
- public get type (): PoolType {
+ protected get type (): PoolType {
return PoolTypes.fixed
}
return this.numberOfWorkers
}
- /** @inheritDoc */
- protected get full (): boolean {
- return this.workerNodes.length >= this.numberOfWorkers
- }
-
/** @inheritDoc */
protected get busy (): boolean {
return this.internalBusy()