public interface StoppableThread
Interface for a stoppable thread.
Threads of this type must provide facility to stop at request gracefully.
Modifier and Type | Method and Description |
---|---|
boolean |
isShutdown()
Query if the process is marked for shutdown.
|
void |
shutdown()
Shuts the thread gracefully down.
|
void shutdown() throws IOException
Shuts the thread gracefully down.
IOException
- if stopping failsboolean isShutdown()
Query if the process is marked for shutdown.
Copyright © 2023. All rights reserved.