org.apache.sling.commons.scheduler.impl
Class QuartzScheduler.QuartzThreadPool
java.lang.Object
org.apache.sling.commons.scheduler.impl.QuartzScheduler.QuartzThreadPool
- All Implemented Interfaces:
- org.quartz.spi.ThreadPool
- Enclosing class:
- QuartzScheduler
public static final class QuartzScheduler.QuartzThreadPool
- extends Object
- implements org.quartz.spi.ThreadPool
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
QuartzScheduler.QuartzThreadPool
public QuartzScheduler.QuartzThreadPool(org.apache.sling.commons.threads.ThreadPool executor)
- Create a new wrapper implementation for Quartz.
getPoolSize
public int getPoolSize()
- Specified by:
getPoolSize in interface org.quartz.spi.ThreadPool
- See Also:
org.quartz.spi.QuartzThreadPool#getPoolSize()
initialize
public void initialize()
- Specified by:
initialize in interface org.quartz.spi.ThreadPool
- See Also:
org.quartz.spi.QuartzThreadPool#initialize()
setInstanceId
public void setInstanceId(String id)
- Specified by:
setInstanceId in interface org.quartz.spi.ThreadPool
- See Also:
ThreadPool.setInstanceId(java.lang.String)
setInstanceName
public void setInstanceName(String name)
- Specified by:
setInstanceName in interface org.quartz.spi.ThreadPool
- See Also:
ThreadPool.setInstanceName(java.lang.String)
runInThread
public boolean runInThread(Runnable job)
- Specified by:
runInThread in interface org.quartz.spi.ThreadPool
- See Also:
org.quartz.spi.QuartzThreadPool#runInThread(java.lang.Runnable)
blockForAvailableThreads
public int blockForAvailableThreads()
- Specified by:
blockForAvailableThreads in interface org.quartz.spi.ThreadPool
- See Also:
ThreadPool.blockForAvailableThreads()
shutdown
public void shutdown(boolean waitForJobsToComplete)
- Specified by:
shutdown in interface org.quartz.spi.ThreadPool
- See Also:
org.quartz.spi.QuartzThreadPool#shutdown(boolean)
Copyright © 2007-2013 The Apache Software Foundation. All Rights Reserved.