thread-like running
services that can be stopped, joined or shutdown orderly and abruptly in a controllable way.See: Description
| Interface | Description |
|---|---|
| Joinable |
Joinable is a running service such as a thread that can be
joined to await
its termination. |
| RunnableFactory |
A factory for a
Runnable that can be stopped by complying with a
RunningCondition that is passed to the factory method upon construction of
the runnable. |
| RunnableFactory.RunningCondition |
Condition for a runnable created by
RunnableFactory.create(RunningCondition) telling the runnable when
to stop. |
| Shutdownable |
Shutdownable is a running service such as a thread that can be shutdown orderly or abruptly in a way similar to
ExecutorService. |
| Stoppable |
Stoppable is a running service such as a thread that can be stopped either by calling
stop or via Stoppable.close() method of AutoCloseable. |
| ThreadLike |
A thread-like running service that can be stopped and joined.
|
| ThreadState |
The running state is a property of a running service such as a thread and is closely related to
Thread.State. |
| Class | Description |
|---|---|
| ShutdownableThread |
A thread that performs a main
runnable in a new thread and another shutdown runnable the
graceful ShutdownableThread.shutdown() phase of the thread. |
| StoppableThread |
A thread that performs a
runnable in a new thread. |
thread-like running
services that can be stopped, joined or shutdown orderly and abruptly in a controllable way. The two
main implementations in this package are StoppableThread
and ShutdownableThread.