-const workerChoiceStrategyLeastUsedPoolOption = {
- workerChoiceStrategy: WorkerChoiceStrategies.LEAST_USED
-}
-const workerChoiceStrategyLeastBusyPoolOption = {
- workerChoiceStrategy: WorkerChoiceStrategies.LEAST_BUSY
-}
-const workerChoiceStrategyWeightedRoundRobinPoolOption = {
- workerChoiceStrategy: WorkerChoiceStrategies.WEIGHTED_ROUND_ROBIN
-}
-const workerChoiceStrategyFairSharePoolOption = {
- workerChoiceStrategy: WorkerChoiceStrategies.FAIR_SHARE
-}
-
-const fixedThreadPoolRoundRobin = buildPool(
- WorkerTypes.thread,
- PoolTypes.fixed,
- poolSize,
- workerChoiceStrategyRoundRobinPoolOption
-)
-
-const fixedThreadPoolRoundRobinTasksQueue = buildPool(
- WorkerTypes.thread,
- PoolTypes.fixed,
- poolSize,
- { ...workerChoiceStrategyRoundRobinPoolOption, ...tasksQueuePoolOption }
-)
-
-const fixedThreadPoolLeastUsed = buildPool(
- WorkerTypes.thread,
- PoolTypes.fixed,
- poolSize,
- workerChoiceStrategyLeastUsedPoolOption
-)
-
-const fixedThreadPoolLeastBusy = buildPool(
- WorkerTypes.thread,
- PoolTypes.fixed,
- poolSize,
- workerChoiceStrategyLeastBusyPoolOption
-)
-
-const fixedThreadPoolWeightedRoundRobin = buildPool(
- WorkerTypes.thread,
- PoolTypes.fixed,
- poolSize,
- workerChoiceStrategyWeightedRoundRobinPoolOption
-)
-
-const fixedThreadPoolFairShare = buildPool(
- WorkerTypes.thread,
- PoolTypes.fixed,
- poolSize,
- workerChoiceStrategyFairSharePoolOption
-)
-
-const fixedThreadPoolFairShareTasksQueue = buildPool(
- WorkerTypes.thread,
- PoolTypes.fixed,
- poolSize,
- { ...workerChoiceStrategyFairSharePoolOption, ...tasksQueuePoolOption }
-)
-
-const dynamicThreadPoolRoundRobin = buildPool(
- WorkerTypes.thread,
- PoolTypes.dynamic,
- poolSize,
- workerChoiceStrategyRoundRobinPoolOption
-)
-
-const dynamicThreadPoolLeastUsed = buildPool(
- WorkerTypes.thread,
- PoolTypes.dynamic,
- poolSize,
- workerChoiceStrategyLeastUsedPoolOption
-)
-
-const dynamicThreadPoolLeastBusy = buildPool(
- WorkerTypes.thread,
- PoolTypes.dynamic,
- poolSize,
- workerChoiceStrategyLeastBusyPoolOption
-)
-
-const dynamicThreadPoolWeightedRoundRobin = buildPool(
- WorkerTypes.thread,
- PoolTypes.dynamic,
- poolSize,
- workerChoiceStrategyWeightedRoundRobinPoolOption
-)
-
-const dynamicThreadPoolFairShare = buildPool(
- WorkerTypes.thread,
- PoolTypes.dynamic,
- poolSize,
- workerChoiceStrategyFairSharePoolOption
-)
-
-const fixedClusterPoolRoundRobin = buildPool(
- WorkerTypes.cluster,
- PoolTypes.fixed,
- poolSize,
- workerChoiceStrategyRoundRobinPoolOption
-)