org.springframework.scheduling.quartz
Class LocalTaskExecutorThreadPool

java.lang.Object
  extended by org.springframework.scheduling.quartz.LocalTaskExecutorThreadPool

public class LocalTaskExecutorThreadPool
extends java.lang.Object

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)

Field Summary
protected  Log logger
          Logger available to subclasses
private  java.util.concurrent.Executor taskExecutor
           
 
Constructor Summary
LocalTaskExecutorThreadPool()
           
 
Method Summary
 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)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logger

protected final Log logger
Logger available to subclasses


taskExecutor

private java.util.concurrent.Executor taskExecutor
Constructor Detail

LocalTaskExecutorThreadPool

public LocalTaskExecutorThreadPool()
Method Detail

setInstanceId

public void setInstanceId(java.lang.String schedInstId)

setInstanceName

public void setInstanceName(java.lang.String schedName)

initialize

public void initialize()
                throws SchedulerConfigException
Throws:
SchedulerConfigException

shutdown

public void shutdown(boolean waitForJobsToComplete)

getPoolSize

public int getPoolSize()

runInThread

public boolean runInThread(java.lang.Runnable runnable)

blockForAvailableThreads

public int blockForAvailableThreads()