java concurrent包学习
2016-12-26 18:20:23 0 举报
xue xi
作者其他创作
大纲/内容
类ThreadPoolExecutor
protected void finalize()execute()等方法
接口RunnableFuture
run()
接口ExecutorService
void shutdown()List shutdownNow()boolean isShutdown()boolean isTerminated()submit(Callable task) submit(Runnable task)
接口Runnable
run()
类ScheduledThreadPoolExecutor
接口Future
1,cancel(boolean mayInterruptIfRunning) 2,get() 3,isCancelled()4,isDone()
接口Executor
execute(Runnable command)
接口Callable
T call()
类Executors
1,static ThreadFactory defaultThreadFactory() 2,static ExecutorService\tnewCachedThreadPool()3,static ExecutorService\tnewCachedThreadPool(ThreadFactory threadFactory)4,static Callable\tcallable(Runnable task)
ExecutorService的工厂方法
接口ScheduledExecutorService
类FutureTask
Callable callable
get()阻塞方法run()等实现方法
类AbstractExecutorService
newTaskFor()等方法
收藏
0 条评论
下一页