Java线程池类UML图
2018-04-14 14:55:29 78 举报
一分钟读懂Java线程池类UML图
作者其他创作
大纲/内容
Executors类
+ newFixedThreadPool(int nThreads): static ExecutorService+ newSingleThreadExecutor(int nThreads):static ExecutorService+ newCachedThreadPool(): static ExecutorService+ newSingleThreadScheduledExecutor(): static ScheduledExecutorService
Executor 接口
+ execute(Runnable command):void
AbstractExecutorService抽象类
+ submit(Runnable task):Future
ThreadPoolExecutor类
+核心的几个构造方法
ExecutorService 接口
+ shutdown():void+ shutdownNow():List+ submit(Runnable task):Future+ isShutdown():boolean+ isTerminated():boolean
收藏
0 条评论
下一页