public class SofaThreadPoolTaskScheduler
extends org.springframework.scheduling.concurrent.ThreadPoolTaskScheduler
ThreadPoolTaskScheduler| 限定符和类型 | 字段和说明 |
|---|---|
protected long |
period |
static String |
SIMPLE_CLASS_NAME |
protected SofaScheduledThreadPoolExecutor |
sofaScheduledThreadPoolExecutor |
protected String |
spaceName |
protected long |
taskTimeout |
protected String |
threadPoolName |
| 构造器和说明 |
|---|
SofaThreadPoolTaskScheduler() |
| 限定符和类型 | 方法和说明 |
|---|---|
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) |
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, shutdownpublic static final String SIMPLE_CLASS_NAME
protected SofaScheduledThreadPoolExecutor sofaScheduledThreadPoolExecutor
protected String threadPoolName
protected String spaceName
protected long taskTimeout
protected long period
protected ExecutorService initializeExecutor(ThreadFactory threadFactory, RejectedExecutionHandler rejectedExecutionHandler)
initializeExecutor 在类中 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()
Copyright © 2021. All rights reserved.