类 EagerThreadPoolExecutor
- java.lang.Object
-
- java.util.concurrent.AbstractExecutorService
-
- java.util.concurrent.ThreadPoolExecutor
-
- com.alibaba.dubbo.common.threadpool.support.eager.EagerThreadPoolExecutor
-
- 所有已实现的接口:
Executor
,ExecutorService
public class EagerThreadPoolExecutor extends ThreadPoolExecutor
EagerThreadPoolExecutor
-
-
嵌套类概要
-
从类继承的嵌套类/接口 java.util.concurrent.ThreadPoolExecutor
ThreadPoolExecutor.AbortPolicy, ThreadPoolExecutor.CallerRunsPolicy, ThreadPoolExecutor.DiscardOldestPolicy, ThreadPoolExecutor.DiscardPolicy
-
-
构造器概要
构造器 构造器 说明 EagerThreadPoolExecutor(int corePoolSize, int maximumPoolSize, long keepAliveTime, TimeUnit unit, TaskQueue<Runnable> workQueue, ThreadFactory threadFactory, RejectedExecutionHandler handler)
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 void
execute(Runnable command)
int
getSubmittedTaskCount()
-
从类继承的方法 java.util.concurrent.ThreadPoolExecutor
allowCoreThreadTimeOut, allowsCoreThreadTimeOut, awaitTermination, getActiveCount, getCompletedTaskCount, getCorePoolSize, getKeepAliveTime, getLargestPoolSize, getMaximumPoolSize, getPoolSize, getQueue, getRejectedExecutionHandler, getTaskCount, getThreadFactory, isShutdown, isTerminated, isTerminating, prestartAllCoreThreads, prestartCoreThread, purge, remove, setCorePoolSize, setKeepAliveTime, setMaximumPoolSize, setRejectedExecutionHandler, setThreadFactory, shutdown, shutdownNow, toString
-
-
-
-
构造器详细资料
-
EagerThreadPoolExecutor
public EagerThreadPoolExecutor(int corePoolSize, int maximumPoolSize, long keepAliveTime, TimeUnit unit, TaskQueue<Runnable> workQueue, ThreadFactory threadFactory, RejectedExecutionHandler handler)
-
-
方法详细资料
-
getSubmittedTaskCount
public int getSubmittedTaskCount()
- 返回:
- current tasks which are executed
-
execute
public void execute(Runnable command)
- 指定者:
execute
在接口中Executor
- 覆盖:
execute
在类中ThreadPoolExecutor
-
-