Class DelayingShutdownHook

  • All Implemented Interfaces:
    ShutdownHook, ContextAware, Runnable

    public class DelayingShutdownHook
    extends ShutdownHookBase
    ShutdownHook implementation that stops the Logback context after a specified delay. The default delay is 0 ms (zero).
    • Field Detail


        public static final Duration DEFAULT_DELAY
        The default is no delay before shutdown.
    • Constructor Detail

      • DelayingShutdownHook

        public DelayingShutdownHook()
    • Method Detail

      • setDelay

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

        public void run()