import Configuration from '../utils/Configuration';
import { StationWorkerData } from '../types/Worker';
import Utils from '../utils/Utils';
+import WorkerAbstract from '../worker/WorkerAbstract';
import WorkerFactory from '../worker/WorkerFactory';
-import Wrk from '../worker/Wrk';
import { isMainThread } from 'worker_threads';
import path from 'path';
private static instance: Bootstrap;
private started: boolean;
private workerScript: string;
- private workerImplementationInstance: Wrk;
+ private workerImplementationInstance: WorkerAbstract;
private constructor() {
this.started = false;
await this.start();
}
- private getWorkerImplementationInstance(): Wrk {
+ private getWorkerImplementationInstance(): WorkerAbstract {
if (!this.workerImplementationInstance) {
this.workerImplementationInstance = WorkerFactory.getWorkerImplementation<StationWorkerData>(this.workerScript, Configuration.getWorkerProcess(), {
poolMaxSize: Configuration.getWorkerPoolMaxSize(),