ThreadPool
2019-08-01 13:32:55 0 举报
ThreadPool
作者其他创作
大纲/内容
AbstractAbstractExecutorService
ClassFutureTask<V>
-callable: Callable<V>-state: int
InterfaceRejectedExecutionHandler
InterfaceExecutorService
ClassThreadPoolExecutor.AbortPolicy
+AbortPolicy()
ClassThreadPoolExecutor.CallerRunsPolicy
+CallerRunsPolicy()
ClassForkJoinPool
InterfaceScheduledExecutorService
ClassExecutors
InterfaceThreadFactory
+newThread(Runnable): Thread
ClassScheduledThreadPoolExecutor
InterfaceCallable<V>
+call(): V
ClassThreadPoolExecutor
-corePoolSize: int-maximumPoolSize: int-keepAliveTime: long-workQueue: BlockingQueue<Runnable>-threadFactory: ThreadFactory-handler: RejectedExecutionHandler-ctl: AtomicInteger-cc: AccessControlContext
ClassExecutors.PrivilegedCallable<T>
-task: Callable<T>-acc: AccessControlContext
PrivilegedCallable(Callable<T>)+call(): T
ClassThreadPoolExecutor.DiscardOldestPolicy
+DiscardOldestPolicy()
InterfaceRunnable
+run(): void
ClassExecutors.RunnableAdapter<T>
task: Runnableresult: T
ClassThreadPoolExecutor.DiscardPolicy
+DiscardPolicy()
ClassExecutors.DefaultThreadFactory
DefaultThreadFactory()
InterfaceRunnableFuture<V>
InterfaceFuture<V>
InterfaceExecutor
+execute(Runnable): void
0 条评论
下一页