public class LocalTaskExecutorThreadPool extends Object implements ThreadPool
ThreadPool adapter that delegates to a Spring-managed
Executor instance, specified on SchedulerFactoryBean.SchedulerFactoryBean.setTaskExecutor(java.util.concurrent.Executor)| Modifier and Type | Field and Description |
|---|---|
protected Log |
logger
Logger available to subclasses.
|
| Constructor and Description |
|---|
LocalTaskExecutorThreadPool() |
| Modifier and Type | Method and Description |
|---|---|
int |
blockForAvailableThreads() |
int |
getPoolSize() |
void |
initialize() |
boolean |
runInThread(Runnable runnable) |
void |
setInstanceId(String schedInstId) |
void |
setInstanceName(String schedName) |
void |
shutdown(boolean waitForJobsToComplete) |
protected final Log logger
public void setInstanceId(String schedInstId)
setInstanceId in interface ThreadPoolpublic void setInstanceName(String schedName)
setInstanceName in interface ThreadPoolpublic void initialize()
throws SchedulerConfigException
initialize in interface ThreadPoolSchedulerConfigExceptionpublic void shutdown(boolean waitForJobsToComplete)
shutdown in interface ThreadPoolpublic int getPoolSize()
getPoolSize in interface ThreadPoolpublic boolean runInThread(Runnable runnable)
runInThread in interface ThreadPoolpublic int blockForAvailableThreads()
blockForAvailableThreads in interface ThreadPool