public class SofaThreadPoolTaskExecutor
extends org.springframework.scheduling.concurrent.ThreadPoolTaskExecutor
ThreadPoolTaskExecutor| 限定符和类型 | 字段和说明 |
|---|---|
protected long |
period |
static String |
SIMPLE_CLASS_NAME |
protected SofaThreadPoolExecutor |
sofaThreadPoolExecutor |
protected String |
spaceName |
protected long |
taskTimeout |
protected String |
threadPoolName |
| 构造器和说明 |
|---|
SofaThreadPoolTaskExecutor() |
| 限定符和类型 | 方法和说明 |
|---|---|
protected String |
createName() |
long |
getPeriod() |
String |
getSpaceName() |
long |
getTaskTimeout() |
String |
getThreadPoolName() |
TimeUnit |
getTimeUnit() |
protected ExecutorService |
initializeExecutor(ThreadFactory threadFactory,
RejectedExecutionHandler rejectedExecutionHandler) |
void |
setPeriod(long period) |
void |
setSpaceName(String spaceName) |
void |
setTaskTimeout(long taskTimeout) |
void |
setThreadPoolName(String threadPoolName) |
createQueue, execute, execute, getActiveCount, getCorePoolSize, getKeepAliveSeconds, getMaxPoolSize, getPoolSize, getThreadPoolExecutor, prefersShortLivedTasks, setAllowCoreThreadTimeOut, setCorePoolSize, setKeepAliveSeconds, setMaxPoolSize, setQueueCapacity, setTaskDecorator, submit, submit, submitListenable, submitListenableafterPropertiesSet, destroy, initialize, setAwaitTerminationSeconds, setBeanName, setRejectedExecutionHandler, setThreadFactory, setThreadNamePrefix, setWaitForTasksToCompleteOnShutdown, shutdownpublic static final String SIMPLE_CLASS_NAME
protected SofaThreadPoolExecutor sofaThreadPoolExecutor
protected String threadPoolName
protected String spaceName
protected long taskTimeout
protected long period
protected ExecutorService initializeExecutor(ThreadFactory threadFactory, RejectedExecutionHandler rejectedExecutionHandler)
initializeExecutor 在类中 org.springframework.scheduling.concurrent.ThreadPoolTaskExecutorprotected String createName()
public String getThreadPoolName()
public void setThreadPoolName(String threadPoolName)
public String getSpaceName()
public void setSpaceName(String spaceName)
public long getTaskTimeout()
public void setTaskTimeout(long taskTimeout)
public long getPeriod()
public void setPeriod(long period)
public TimeUnit getTimeUnit()
Copyright © 2021. All rights reserved.