介绍
- java.util.concurrent.ExecutorService
- public interface ExecutorService extends Executor
API
-
shutdown
-
shutdownNow
-
isShutdown
-
isTerminated
-
awaitTermination
-
submit
Future<?> submit(Runnable task);
<T> Future<T> submit(Runnable task, T result);
<T> Future<T> submit(Callable<T> task);
-
invokeAll
-
invokeAny