Executor
2023-08-17 15:54:36 0 举报
Executor
作者其他创作
大纲/内容
ScheduledThreadPoolExecutor
- continueExistingPeriodicTasksAfterShutdown:boolean- executeExistingDelayedTasksAfterShutdown:boolean = true- removeOnCancel:boolean = false- sequencer:AtomicLong = new AtomicLong()
ForkJoinPool
- U:sun.misc.Unsafe- ABASE:int- ASHIFT:int- CTL:long- RUNSTATE:long- STEALCOUNTER:long- PARKBLOCKER:long- QTOP:long- QLOCK:long- QSCANSTATE:long- QPARKER:long- QCURRENTSTEAL:long- QCURRENTJOIN:long
继承
实现
内部类
<<Interface>>ExecutorService
AbstractExecutorService
ThreadPoolExecutor
- COUNT_BITS:int = Integer.SIZE - 3- CAPACITY:int = (1 << COUNT_BITS) - 1- RUNNING:int = -1 << COUNT_BITS- SHUTDOWN:int = 0 << COUNT_BITS- STOP:int = 1 << COUNT_BITS- TIDYING:int = 2 << COUNT_BITS- TERMINATED:int = 3 << COUNT_BITS- corePoolSize:int- maximumPoolSize:int- keepAliveTime:long- workQueue:BlockingQueue<Runnable>- threadFactory:ThreadFactory- handler:RejectedExecutionHandler- allowCoreThreadTimeOut:boolean- largestPoolSize:int- completedTaskCount:long- workers:HashSet<Worker> = new HashSet<Worker>()- defaultHandler:RejectedExecutionHandler = new AbortPolicy()
span style=\"font-size: inherit;\
基于JDK1.8
<<interface>>Executor
+ execute(Runnable command):void
<<interface>>ScheduledExecutorService
+ 公有(public)# 保护(span style=\
0 条评论
下一页