Class ShutdownHooks

java.lang.Object
ch.raffael.meldioc.library.base.ShutdownHooks

public final class ShutdownHooks
extends java.lang.Object
  • Method Summary

    Modifier and Type Method Description
    ShutdownHooks add​(java.lang.Runnable... runnable)  
    ShutdownHooks add​(java.util.function.Supplier<? extends ShutdownController.Actuator> shutdownHandleSupplier)  
    ShutdownHooks logging()
    Deprecated.
    Not required anymore, logging will be shut down by default
    static ShutdownHooks shutdownHooks()  
    ShutdownHooks shutdownLogging​(boolean shutdownLogging)
    Enable or disable log shutdown in shutdown hook, enabled by default.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • shutdownHooks

      public static ShutdownHooks shutdownHooks()
    • add

      public ShutdownHooks add​(java.lang.Runnable... runnable)
    • add

      public ShutdownHooks add​(java.util.function.Supplier<? extends ShutdownController.Actuator> shutdownHandleSupplier)
    • logging

      @Deprecated public ShutdownHooks logging()
      Deprecated.
      Not required anymore, logging will be shut down by default
      See Also:
      shutdownLogging(boolean)
    • shutdownLogging

      public ShutdownHooks shutdownLogging​(boolean shutdownLogging)
      Enable or disable log shutdown in shutdown hook, enabled by default.
      Parameters:
      shutdownLogging - true to shutdown logging