Package net.messagevortex.transport
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 TypeMethodDescriptionbooleanQuery if the process is marked for shutdown.voidshutdown()Shuts the thread gracefully down.
-
Method Details
-
shutdown
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
-