Class QuartzCachedThreadPool

  • All Implemented Interfaces:
    org.quartz.spi.ThreadPool

    public class QuartzCachedThreadPool
    extends Object
    implements org.quartz.spi.ThreadPool
    Quartz thread pool implementation which uses a cached thread executor service.
    • Constructor Detail

      • QuartzCachedThreadPool

        public QuartzCachedThreadPool()
    • Method Detail

      • blockForAvailableThreads

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

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

        public void initialize()
                        throws org.quartz.SchedulerConfigException
        Specified by:
        initialize in interface org.quartz.spi.ThreadPool
        Throws:
        org.quartz.SchedulerConfigException
      • runInThread

        public boolean runInThread​(Runnable task)
        Specified by:
        runInThread in interface org.quartz.spi.ThreadPool
      • setInstanceId

        public void setInstanceId​(String instanceId)
        Specified by:
        setInstanceId in interface org.quartz.spi.ThreadPool
      • setInstanceName

        public void setInstanceName​(String instanceName)
        Specified by:
        setInstanceName in interface org.quartz.spi.ThreadPool
      • shutdown

        public void shutdown​(boolean waitForJobsToComplete)
        Specified by:
        shutdown in interface org.quartz.spi.ThreadPool