Class DefaultShutdownHook

All Implemented Interfaces:
ShutdownHook, ContextAware, Runnable

ShutdownHook implementation that stops the Logback context after a specified delay. The default delay is 0 ms (zero).

Stopping the logback context

Author:
Mike Reinhold
  • Field Details

  • Constructor Details

  • Method Details

    • getDelay

      public Duration getDelay()
    • setDelay

      public void setDelay(Duration delay)
      The duration to wait before shutting down the current logback context.
      Parameters:
      delay -
    • run

      public void run()