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 Summary

    Modifier and Type
    Method
    Description
    boolean
    The server will wait for all tasks to complete before shutting down.
    void
    This method will be invoked on all running components before shutdown happens.
  • Method Details

    • 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.