Class LocalTaskExecutorThreadPool
- java.lang.Object
- org.springframework.scheduling.quartz.LocalTaskExecutorThreadPool
- All Implemented Interfaces:
ThreadPool
public class LocalTaskExecutorThreadPool extends Object implements ThreadPool
Quartz ThreadPool adapter that delegates to a Spring-managed TaskExecutor instance, specified on SchedulerFactoryBean.- Since:
- 2.0
- Author:
- Juergen Hoeller
- See Also:
SchedulerFactoryBean.setTaskExecutor(java.util.concurrent.Executor)
Constructor Summary
Constructors Constructor Description LocalTaskExecutorThreadPool()
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
blockForAvailableThreads()
int
getPoolSize()
void
initialize()
boolean
runInThread(Runnable runnable)
void
setInstanceId(String schedInstId)
void
setInstanceName(String schedName)
void
shutdown(boolean waitForJobsToComplete)
Constructor Detail
LocalTaskExecutorThreadPool
public LocalTaskExecutorThreadPool()
Method Detail
setInstanceId
public void setInstanceId(String schedInstId)
- Specified by:
setInstanceId
in interfaceThreadPool
setInstanceName
public void setInstanceName(String schedName)
- Specified by:
setInstanceName
in interfaceThreadPool
initialize
public void initialize() throws SchedulerConfigException
- Specified by:
initialize
in interfaceThreadPool
- Throws:
SchedulerConfigException
shutdown
public void shutdown(boolean waitForJobsToComplete)
- Specified by:
shutdown
in interfaceThreadPool
getPoolSize
public int getPoolSize()
- Specified by:
getPoolSize
in interfaceThreadPool
runInThread
public boolean runInThread(Runnable runnable)
- Specified by:
runInThread
in interfaceThreadPool
blockForAvailableThreads
public int blockForAvailableThreads()
- Specified by:
blockForAvailableThreads
in interfaceThreadPool