threadpool
2020-07-02 10:21:28 0 举报
java线程池类图
作者其他创作
大纲/内容
ThreadPoolExector
- workQueue : BlockingQueue<Runnable>- workers : HashSet<Worker>
<interface> Callable
+ call() : Object
<interface> RunnableFuture<V>
+ run() : void
ForkJoinPool
ScheduledThreadPoolExecutor
<interface> Runnable
FutureTask<V>
<interface> ExecutorService
+ submit(Callable<T> task)() : Future<?>+ submit(Runnable task)() : Future<?>
<interface> Executor
+ execute(Runnable) : void
AbstractExecutorService
<interface> Future
Executors
+ newCachedThreadPool() : ExecutorService+ newFixedThreadPool(int nThreads) : ExecutorService+ newSingleThreadExecutor(int nThreads) : ExecutorService+ newScheduledThreadPool(int corePoolSize) : ScheduledExecutorService+ newSingleThreadScheduledExecutor() : ScheduledExecutorService
<interface> ScheduledExecutorService
+ run() : void+ submit(Callable<T> task)() : Future<?>+ submit(Runnable task)() : Future<?>
0 条评论
下一页