public class LocalTaskExecutorThreadPool extends java.lang.Object implements ThreadPool
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(java.lang.Runnable runnable) |
void |
setInstanceId(java.lang.String schedInstId) |
void |
setInstanceName(java.lang.String schedName) |
void |
shutdown(boolean waitForJobsToComplete) |
protected final Log logger
public void setInstanceId(java.lang.String schedInstId)
setInstanceId
in interface ThreadPool
public void setInstanceName(java.lang.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(java.lang.Runnable runnable)
runInThread
in interface ThreadPool
public int blockForAvailableThreads()
blockForAvailableThreads
in interface ThreadPool