类 ShutdownUtil

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

public class ShutdownUtil extends Object
  • 构造器详细资料

    • ShutdownUtil

      public ShutdownUtil()
  • 方法详细资料

    • triggerImmediateForcefulShutdown

      public static void triggerImmediateForcefulShutdown(int status)
      Triggers an immediate forceful shutdown of the current process.
      参数:
      status - Termination status. By convention, a nonzero status code indicates abnormal termination.
      另请参阅:
    • 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.
      另请参阅: