From: Jérôme Benoit Date: Sat, 5 Mar 2022 19:58:53 +0000 (+0100) Subject: src/worker/WorkerConstants.ts: add X-Git-Tag: v1.1.52~19 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=6f96009b3e4864dcd8771d84d9e826c90018e61c;p=e-mobility-charging-stations-simulator.git src/worker/WorkerConstants.ts: add Signed-off-by: Jérôme Benoit --- diff --git a/src/worker/WorkerConstants.ts b/src/worker/WorkerConstants.ts new file mode 100644 index 00000000..9a1caf8e --- /dev/null +++ b/src/worker/WorkerConstants.ts @@ -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; +}