Class ShutdownManager

java.lang.Object
com.soulfiremc.server.util.structs.ShutdownManager

public final class ShutdownManager extends Object
  • Constructor Details

    • ShutdownManager

      public ShutdownManager(Runnable shutdownHook)
  • Method Details

    • shutdownSoftware

      public void shutdownSoftware(boolean explicitExit)
      Shuts down the software if it is running.
      Parameters:
      explicitExit - whether the user explicitly shut down the software
    • awaitShutdown

      public void awaitShutdown()
    • shutdown

      public boolean shutdown()