Class ShutdownUtil


  • public class ShutdownUtil
    extends java.lang.Object
    Forked from Pulsar.
    • Constructor Detail

      • ShutdownUtil

        public ShutdownUtil()
    • Method Detail

      • triggerImmediateForcefulShutdown

        public static void triggerImmediateForcefulShutdown​(int status)
        Triggers an immediate forceful shutdown of the current process.
        Parameters:
        status - Termination status. By convention, a nonzero status code indicates abnormal termination.
        See Also:
        Runtime.halt(int)
      • triggerImmediateForcefulShutdown

        public static void triggerImmediateForcefulShutdown​(int status,
                                                            boolean logging)
      • triggerImmediateForcefulShutdown

        public static void triggerImmediateForcefulShutdown()
        Triggers an immediate forceful shutdown of the current process using 1 as the status code.
        See Also:
        Runtime.halt(int)