public class SofaThreadPoolTaskExecutor
extends org.springframework.scheduling.concurrent.ThreadPoolTaskExecutor
ThreadPoolTaskExecutor| Modifier and Type | Field and Description |
|---|---|
protected long |
period |
static String |
SIMPLE_CLASS_NAME |
protected SofaThreadPoolExecutor |
sofaThreadPoolExecutor |
protected boolean |
sofaTracerTransmit |
protected String |
spaceName |
protected long |
taskTimeout |
protected String |
threadPoolName |
| Constructor and Description |
|---|
SofaThreadPoolTaskExecutor() |
| Modifier and Type | Method and Description |
|---|---|
protected String |
createName() |
long |
getPeriod() |
String |
getSpaceName() |
long |
getTaskTimeout() |
String |
getThreadPoolName() |
TimeUnit |
getTimeUnit() |
protected ExecutorService |
initializeExecutor(ThreadFactory threadFactory,
RejectedExecutionHandler rejectedExecutionHandler) |
boolean |
isSofaTracerTransmit() |
void |
setPeriod(long period) |
void |
setSofaTracerTransmit(boolean sofaTracerTransmit) |
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, shutdownnewThreadpublic static final String SIMPLE_CLASS_NAME
protected SofaThreadPoolExecutor sofaThreadPoolExecutor
protected String threadPoolName
protected String spaceName
protected long taskTimeout
protected long period
protected boolean sofaTracerTransmit
protected ExecutorService initializeExecutor(ThreadFactory threadFactory, RejectedExecutionHandler rejectedExecutionHandler)
initializeExecutor in class 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()
public boolean isSofaTracerTransmit()
public void setSofaTracerTransmit(boolean sofaTracerTransmit)
Copyright © 2024. All rights reserved.