Interface WaitBeforeShutdownObserver


  • public interface WaitBeforeShutdownObserver
    This interface must be implemented by classes (mainly threads etc), that require notification and waiting before the shutdown sequence commences in the process of a graceful shutdown.
    • Method Detail

      • startingShutdown

        void startingShutdown()
        This method will be invoked on all running components before shutdown happens.
      • isTaskComplete

        boolean isTaskComplete()
        The server will wait for all tasks to complete before shutting down.
        Returns:
        true if the server needs to wait or false if not.