public class LocalTaskExecutorThreadPool extends Object implements org.quartz.spi.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(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 org.quartz.spi.ThreadPool
public void setInstanceName(String schedName)
setInstanceName
in interface org.quartz.spi.ThreadPool
public void initialize() throws org.quartz.SchedulerConfigException
initialize
in interface org.quartz.spi.ThreadPool
org.quartz.SchedulerConfigException
public void shutdown(boolean waitForJobsToComplete)
shutdown
in interface org.quartz.spi.ThreadPool
public int getPoolSize()
getPoolSize
in interface org.quartz.spi.ThreadPool
public boolean runInThread(Runnable runnable)
runInThread
in interface org.quartz.spi.ThreadPool
public int blockForAvailableThreads()
blockForAvailableThreads
in interface org.quartz.spi.ThreadPool