Class LocalTaskExecutorThreadPool
java.lang.Object
org.springframework.scheduling.quartz.LocalTaskExecutorThreadPool
- All Implemented Interfaces:
ThreadPool
Quartz
ThreadPool
adapter that delegates to a Spring-managed
Executor
instance, specified on SchedulerFactoryBean
.- Since:
- 2.0
- Author:
- Juergen Hoeller
- See Also:
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
int
void
boolean
runInThread
(Runnable runnable) void
setInstanceId
(String schedInstId) void
setInstanceName
(String schedName) void
shutdown
(boolean waitForJobsToComplete)
-
Field Details
-
logger
Logger available to subclasses.
-
-
Constructor Details
-
LocalTaskExecutorThreadPool
public LocalTaskExecutorThreadPool()
-
-
Method Details
-
setInstanceId
- Specified by:
setInstanceId
in interfaceThreadPool
-
setInstanceName
- Specified by:
setInstanceName
in interfaceThreadPool
-
initialize
- 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
- Specified by:
runInThread
in interfaceThreadPool
-
blockForAvailableThreads
public int blockForAvailableThreads()- Specified by:
blockForAvailableThreads
in interfaceThreadPool
-