Home / cs-notes / Language / Java / Concurrent / Code / Executor / ExecutorService
- shutdown
- submit
- Runnable -> Future
- Runnable, T -> Future
- Callable -> Future
/**
* Returns {@code true} if this executor has been shut down.
*
* @return {@code true} if this executor has been shut down
*/
boolean isShutdown();
/**
* Returns {@code true} if all tasks have completed following shut down.
* Note that {@code isTerminated} is never {@code true} unless
* either {@code shutdown} or {@code shutdownNow} was called first.
*
* @return {@code true} if all tasks have completed following shut down
*/
boolean isTerminated();