Class ShutdownUtil

java.lang.Object
org.apache.pulsar.common.util.ShutdownUtil

public class ShutdownUtil extends Object
  • Constructor Details

    • ShutdownUtil

      public ShutdownUtil()
  • Method Details

    • 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:
    • 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: