Interface StoppableThread

All Known Implementing Classes:
ImapServer

public interface StoppableThread

Interface for a stoppable thread.

Threads of this type must provide facility to stop at request gracefully.

  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Query if the process is marked for shutdown.
    void
    Shuts the thread gracefully down.
  • Method Details

    • shutdown

      void shutdown() throws IOException

      Shuts the thread gracefully down.

      Throws:
      IOException - if stopping fails
    • isShutdown

      boolean isShutdown()

      Query if the process is marked for shutdown.

      Returns:
      true if the thread is marked for shutdown