src/worker/WorkerConstants.ts: add
authorJérôme Benoit <jerome.benoit@sap.com>
Sat, 5 Mar 2022 19:58:53 +0000 (20:58 +0100)
committerJérôme Benoit <jerome.benoit@sap.com>
Sat, 5 Mar 2022 19:58:53 +0000 (20:58 +0100)
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
src/worker/WorkerConstants.ts [new file with mode: 0644]

diff --git a/src/worker/WorkerConstants.ts b/src/worker/WorkerConstants.ts
new file mode 100644 (file)
index 0000000..9a1caf8
--- /dev/null
@@ -0,0 +1,8 @@
+export default class WorkerConstants {
+  static readonly DEFAULT_ELEMENT_START_DELAY = 0;
+  static readonly DEFAULT_WORKER_START_DELAY = 500;
+  static readonly POOL_MAX_INACTIVE_TIME = 60000;
+  static readonly DEFAULT_POOL_MIN_SIZE = 4;
+  static readonly DEFAULT_POOL_MAX_SIZE = 16;
+  static readonly DEFAULT_ELEMENTS_PER_WORKER = 1;
+}