org.apache.sling.commons.scheduler.impl
Class QuartzScheduler.QuartzThreadPool

java.lang.Object
  extended by 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 java.lang.Object
implements org.quartz.spi.ThreadPool


Constructor Summary
QuartzScheduler.QuartzThreadPool(org.apache.sling.commons.threads.ThreadPool executor)
          Create a new wrapper implementation for Quartz.
 
Method Summary
 int blockForAvailableThreads()
           
 int getPoolSize()
           
 void initialize()
           
 boolean runInThread(java.lang.Runnable job)
           
 void setInstanceId(java.lang.String id)
           
 void setInstanceName(java.lang.String name)
           
 void shutdown(boolean waitForJobsToComplete)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

QuartzScheduler.QuartzThreadPool

public QuartzScheduler.QuartzThreadPool(org.apache.sling.commons.threads.ThreadPool executor)
Create a new wrapper implementation for Quartz.

Method Detail

getPoolSize

public int getPoolSize()
Specified by:
getPoolSize in interface org.quartz.spi.ThreadPool

initialize

public void initialize()
Specified by:
initialize in interface org.quartz.spi.ThreadPool

setInstanceId

public void setInstanceId(java.lang.String id)
Specified by:
setInstanceId in interface org.quartz.spi.ThreadPool

setInstanceName

public void setInstanceName(java.lang.String name)
Specified by:
setInstanceName in interface org.quartz.spi.ThreadPool

runInThread

public boolean runInThread(java.lang.Runnable job)
Specified by:
runInThread in interface org.quartz.spi.ThreadPool

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


Copyright © 2007-2012 The Apache Software Foundation. All Rights Reserved.