public class EagerDtpExecutor extends DtpExecutor
ThreadPoolExecutor.AbortPolicy, ThreadPoolExecutor.CallerRunsPolicy, ThreadPoolExecutor.DiscardOldestPolicy, ThreadPoolExecutor.DiscardPolicyawaitTerminationSeconds, threadPoolName, waitForTasksToCompleteOnShutdown| 构造器和说明 |
|---|
EagerDtpExecutor(int corePoolSize,
int maximumPoolSize,
long keepAliveTime,
TimeUnit unit,
BlockingQueue<Runnable> workQueue,
ThreadFactory threadFactory,
RejectedExecutionHandler handler) |
| 限定符和类型 | 方法和说明 |
|---|---|
protected void |
afterExecute(Runnable r,
Throwable t) |
void |
execute(Runnable command) |
int |
getSubmittedTaskCount() |
beforeExecute, execute, getNotifyItems, getQueueCapacity, getQueueName, getQueueTimeoutCount, getRejectCount, getRejectHandlerName, getRunTimeoutCount, getThreadPoolAliasName, incRejectCount, initialize, isNotifyEnabled, setAllowCoreThreadTimeOut, setNotifyEnabled, setNotifyItems, setPreStartAllCoreThreads, setQueueTimeout, setRejectHandlerName, setRunTimeout, setTaskWrappers, setThreadPoolAliasNameafterPropertiesSet, cancelRemainingTask, destroy, getThreadPoolName, internalShutdown, setAwaitTerminationSeconds, setThreadPoolName, setWaitForTasksToCompleteOnShutdownallowCoreThreadTimeOut, allowsCoreThreadTimeOut, awaitTermination, finalize, 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, terminated, toStringinvokeAll, invokeAll, invokeAny, invokeAny, newTaskFor, newTaskFor, submit, submit, submitpublic EagerDtpExecutor(int corePoolSize,
int maximumPoolSize,
long keepAliveTime,
TimeUnit unit,
BlockingQueue<Runnable> workQueue,
ThreadFactory threadFactory,
RejectedExecutionHandler handler)
public int getSubmittedTaskCount()
protected void afterExecute(Runnable r, Throwable t)
afterExecute 在类中 DtpExecutorpublic void execute(Runnable command)
execute 在接口中 Executorexecute 在接口中 org.springframework.core.task.TaskExecutorexecute 在类中 DtpExecutorCopyright © 2023. All rights reserved.