Interface Controllable


public interface Controllable
Any Server implementaion which should support restarting or shutting down should implement this interface
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Forcefully restart the server
    void
    Gracefully restart the server after serving all requests currently being processed
    void
    Forcefully shutdown the server
    void
    Gracefully shutdown the server after serving all requests currently being processed
  • Method Details

    • shutdown

      void shutdown() throws ServerException
      Forcefully shutdown the server
      Throws:
      ServerException - If an error occurs during shutting down
    • shutdownGracefully

      void shutdownGracefully() throws ServerException
      Gracefully shutdown the server after serving all requests currently being processed
      Throws:
      ServerException - If an error occurs during shutting down
    • restart

      void restart() throws ServerException
      Forcefully restart the server
      Throws:
      ServerException - If an error occurs during restarting
    • restartGracefully

      void restartGracefully() throws ServerException
      Gracefully restart the server after serving all requests currently being processed
      Throws:
      ServerException - If an error occurs during restarting