X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=src%2Fpools%2Fcluster%2Fdynamic.ts;h=33497b0314ef1e46eb3bd129557f31b5e5f4cc17;hb=cf972a185ae3c1ccd435a5c20279110f0b5f0062;hp=4a5f720aca0a315af076cfacd3bb17725f27a3a8;hpb=1927ee6758147bb8a2479b987322564cea20992b;p=poolifier.git diff --git a/src/pools/cluster/dynamic.ts b/src/pools/cluster/dynamic.ts index 4a5f720a..33497b03 100644 --- a/src/pools/cluster/dynamic.ts +++ b/src/pools/cluster/dynamic.ts @@ -1,3 +1,4 @@ +import { PoolType } from '../pool-internal' import type { ClusterPoolOptions } from './fixed' import { FixedClusterPool } from './fixed' @@ -35,7 +36,12 @@ export class DynamicClusterPool< } /** @inheritdoc */ - public isDynamic (): boolean { - return true + public get type (): PoolType { + return PoolType.DYNAMIC + } + + /** @inheritdoc */ + public get busy (): boolean { + return this.workers.length === this.max } }