public class SofaThreadPoolTaskScheduler
extends org.springframework.scheduling.concurrent.ThreadPoolTaskScheduler
ThreadPoolTaskScheduler| Modifier and Type | Field and Description |
|---|---|
protected long |
period |
static String |
SIMPLE_CLASS_NAME |
protected SofaScheduledThreadPoolExecutor |
sofaScheduledThreadPoolExecutor |
protected boolean |
sofaTracerTransmit |
protected String |
spaceName |
protected long |
taskTimeout |
protected String |
threadPoolName |
| Constructor and Description |
|---|
SofaThreadPoolTaskScheduler() |
| 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) |
void |
setPeriod(long period) |
void |
setSofaTracerTransmit(boolean sofaTracerTransmit) |
void |
setSpaceName(String spaceName) |
void |
setTaskTimeout(long taskTimeout) |
void |
setThreadPoolName(String threadPoolName) |
createExecutor, execute, execute, getActiveCount, getPoolSize, getScheduledExecutor, getScheduledThreadPoolExecutor, isRemoveOnCancelPolicy, prefersShortLivedTasks, schedule, schedule, scheduleAtFixedRate, scheduleAtFixedRate, scheduleWithFixedDelay, scheduleWithFixedDelay, setErrorHandler, setPoolSize, setRemoveOnCancelPolicy, submit, submit, submitListenable, submitListenableafterPropertiesSet, destroy, initialize, setAwaitTerminationSeconds, setBeanName, setRejectedExecutionHandler, setThreadFactory, setThreadNamePrefix, setWaitForTasksToCompleteOnShutdown, shutdownnewThreadpublic static final String SIMPLE_CLASS_NAME
protected SofaScheduledThreadPoolExecutor sofaScheduledThreadPoolExecutor
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.ThreadPoolTaskSchedulerprotected 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 void setSofaTracerTransmit(boolean sofaTracerTransmit)
Copyright © 2024. All rights reserved.