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 ThreadPool
public void setInstanceName(String schedName)
setInstanceName
in interface ThreadPool
public void initialize() throws SchedulerConfigException
initialize
in interface ThreadPool
SchedulerConfigException
public void shutdown(boolean waitForJobsToComplete)
shutdown
in interface ThreadPool
public int getPoolSize()
getPoolSize
in interface ThreadPool
public boolean runInThread(Runnable runnable)
runInThread
in interface ThreadPool
public int blockForAvailableThreads()
blockForAvailableThreads
in interface ThreadPool