private void loadThreadCount()

in gepard-core/src/main/java/com/epam/gepard/common/threads/ExecutorThreadManager.java [62:78]


    private void loadThreadCount(final String t) {
        if (t != null) {
            try {
                int thNo = Integer.parseInt(t);
                if (thNo > 0) {
                    threadCount = thNo;
                }
                //limit the thread no
                if (thNo > MAX_EXEC_THREADS) {
                    threadCount = MAX_EXEC_THREADS;
                }
            } catch (Exception e) { //this is not a problem, just means we use single thread approach, i.e. threads no = 1
                // default value of threadCount is 1, so in case of problem, it stays at 1
                CONSOLE_LOG.info("INFO: Cannot parse " + Environment.GEPARD_THREADS + " property:\" " + t + "\", using single thread.");
            }
        }
    }