org.quartz.spi
| |||||||||||||||||||||||||||||||||||||||||||
| Method Summary | |
|---|---|
int |
blockForAvailableThreads()
Determines the number of threads that are currently available in in the pool. |
int |
getPoolSize()
|
void |
initialize()
Called by the QuartzScheduler before the ThreadPool is
used, in order to give the it a chance to initialize. |
boolean |
runInThread(Runnable runnable)
Execute the given in the next
available Thread. |
void |
shutdown(boolean waitForJobsToComplete)
Called by the QuartzScheduler to inform the ThreadPool
that it should free up all of it's resources because the scheduler is
shutting down. |
| Method Detail |
|---|
boolean runInThread(Runnable runnable)
Execute the given in the next
available RunnableThread.
The implementation of this interface should not throw exceptions unless
there is a serious problem (i.e. a serious misconfiguration). If there
are no immediately available threads false should be returned.
int blockForAvailableThreads()
Determines the number of threads that are currently available in in
the pool. Useful for determining the number of times
runInThread(Runnable) can be called before returning
false.
The implementation of this method should block until there is at least one available thread.
void initialize()
throws SchedulerConfigException
Called by the QuartzScheduler before the ThreadPool is
used, in order to give the it a chance to initialize.
SchedulerConfigExceptionvoid shutdown(boolean waitForJobsToComplete)
Called by the QuartzScheduler to inform the ThreadPool
that it should free up all of it's resources because the scheduler is
shutting down.
int getPoolSize()
|
Quartz Enterprise Job Scheduler Project Page | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||