Examples of DeadlineChecker


Examples of org.joget.workflow.shark.DeadlineChecker

            stopThread(profile);
        } else {
            if (interval < INTERVAL_MINIMUM) {
                interval = INTERVAL_MINIMUM;
            }
            DeadlineChecker thread = getThread(profile);
            if (thread == null) {
                thread = new DeadlineChecker(profile,
                    null,
                    interval,
                    10,
                    10,
                    true);
                threadMap.put(profile, thread);
            }
            else {
                thread.setDelay(interval);
                if (thread.isStopped()) {
                    LogUtil.info(DeadlineThreadManager.class.getName(), "Starting DeadlineChecker for profile " + profile);
                    thread.startChecker();
                }
            }
        }
    }
View Full Code Here

Examples of org.joget.workflow.shark.DeadlineChecker

            }
        }
    }

    protected static DeadlineChecker getThread(String profile) {
        DeadlineChecker thread = (DeadlineChecker)threadMap.get(profile);
        return thread;
    }
View Full Code Here

Examples of org.joget.workflow.shark.DeadlineChecker

        DeadlineChecker thread = (DeadlineChecker)threadMap.get(profile);
        return thread;
    }

    protected static void stopThread(String profile) {
        DeadlineChecker thread = getThread(profile);
        if (thread != null) {
            LogUtil.info(DeadlineThreadManager.class.getName(), "Stopping DeadlineChecker for profile " + profile);
            thread.stopChecker();
            threadMap.remove(profile);
        }
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.