X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=src%2Fpools%2Fcluster%2Ffixed.ts;h=b522947f25cb6f9497c7935fdcd131d1747e8b34;hb=cf972a185ae3c1ccd435a5c20279110f0b5f0062;hp=f651d3ade895fdfee56497e642c7e4ce155ead06;hpb=1927ee6758147bb8a2479b987322564cea20992b;p=poolifier.git diff --git a/src/pools/cluster/fixed.ts b/src/pools/cluster/fixed.ts index f651d3ad..b522947f 100644 --- a/src/pools/cluster/fixed.ts +++ b/src/pools/cluster/fixed.ts @@ -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() + } }