摘要: AbstractExecutorService对ExecutorService的执行任务类型的方法提供了一个默认实现。这些方法包括submit,invokeAny和InvokeAll。注意的是来自Executor接口的execute方法是未被实现,execute方法是整个体系的核心,所有的任务都是在... 阅读全文
posted @ 2014-08-13 16:25 梧留柒 阅读(2503) 评论(0) 推荐(0) 编辑
摘要: concurrent包中Executor接口的主要类的关系图如下:Executor接口非常单一,就是执行一个Runnable的命令。public interface Executor { void execute(Runnable command);}ExecutorService接口扩展了E... 阅读全文
posted @ 2014-08-13 14:34 梧留柒 阅读(2002) 评论(0) 推荐(1) 编辑