public static final class QuartzScheduler.QuartzThreadPool extends Object implements org.quartz.spi.ThreadPool
| Constructor and Description |
|---|
QuartzScheduler.QuartzThreadPool(org.apache.sling.commons.threads.ThreadPool executor)
Create a new wrapper implementation for Quartz.
|
| Modifier and Type | Method and Description |
|---|---|
int |
blockForAvailableThreads() |
int |
getPoolSize() |
void |
initialize() |
boolean |
runInThread(Runnable job) |
void |
setInstanceId(String id) |
void |
setInstanceName(String name) |
void |
shutdown(boolean waitForJobsToComplete) |
public QuartzScheduler.QuartzThreadPool(org.apache.sling.commons.threads.ThreadPool executor)
public int getPoolSize()
getPoolSize in interface org.quartz.spi.ThreadPoolorg.quartz.spi.QuartzThreadPool#getPoolSize()public void initialize()
initialize in interface org.quartz.spi.ThreadPoolorg.quartz.spi.QuartzThreadPool#initialize()public void setInstanceId(String id)
setInstanceId in interface org.quartz.spi.ThreadPoolThreadPool.setInstanceId(java.lang.String)public void setInstanceName(String name)
setInstanceName in interface org.quartz.spi.ThreadPoolThreadPool.setInstanceName(java.lang.String)public boolean runInThread(Runnable job)
runInThread in interface org.quartz.spi.ThreadPoolorg.quartz.spi.QuartzThreadPool#runInThread(java.lang.Runnable)public int blockForAvailableThreads()
blockForAvailableThreads in interface org.quartz.spi.ThreadPoolThreadPool.blockForAvailableThreads()public void shutdown(boolean waitForJobsToComplete)
shutdown in interface org.quartz.spi.ThreadPoolorg.quartz.spi.QuartzThreadPool#shutdown(boolean)Copyright © 2007–2015 The Apache Software Foundation. All rights reserved.