/** * trigger a JVM halt with no clean shutdown at all * @param status status code for exit * @param text text message * @param delay delay in millis * @return the timer (assuming the JVM hasn't halted yet) * */ public static Timer haltAM(int status, String text, int delay) { Timer timer = new Timer("halt timer", false); timer.schedule(new DelayedHalt(status, text), delay); return timer; }
/** * trigger a JVM halt with no clean shutdown at all * @param status status code for exit * @param text text message * @param delay delay in millis * @return the timer (assuming the JVM hasn't halted yet) * */ public static Timer haltAM(int status, String text, int delay) { Timer timer = new Timer("halt timer", false); timer.schedule(new DelayedHalt(status, text), delay); return timer; }