12bb70accb53f170137313da6f1abc8d43cd8f68
[e-mobility-charging-stations-simulator.git] / src / worker / WorkerConstants.ts
1 export class WorkerConstants {
2 public static EMPTY_OBJECT = {};
3 public static readonly EMPTY_FUNCTION = Object.freeze(() => {
4 /* This is intentional */
5 });
6
7 static readonly DEFAULT_ELEMENT_START_DELAY = 0;
8 static readonly DEFAULT_WORKER_START_DELAY = 500;
9 static readonly POOL_MAX_INACTIVE_TIME = 60000;
10 static readonly DEFAULT_POOL_MIN_SIZE = 4;
11 static readonly DEFAULT_POOL_MAX_SIZE = 16;
12 static readonly DEFAULT_ELEMENTS_PER_WORKER = 1;
13
14 private constructor() {
15 // This is intentional
16 }
17 }