Class SchedulerFactory

java.lang.Object
org.quartz.core.SchedulerFactory

public class SchedulerFactory extends Object
An implementation of SchedulerFactory that does all of its work of creating a QuartzScheduler instance.
Author:
James House, Anthony Eden, Mohammad Rezaei, timmolter
  • Constructor Details

    • SchedulerFactory

      public SchedulerFactory()
  • Method Details

    • getScheduler

      public Scheduler getScheduler(int threadPoolSize, String packageName) throws SchedulerException
      Parameters:
      threadPoolSize -
      packageName -
      Returns:
      Returns a handle to the Scheduler produced by this factory. Initialized with given threadPoolSize and packageName where it looks for annotated Job classes
      Throws:
      SchedulerException
    • getScheduler

      public Scheduler getScheduler(int threadPoolSize) throws SchedulerException
      Parameters:
      threadPoolSize -
      Returns:
      Returns a handle to the Scheduler produced by this factory. Initialized with given threadPoolSize
      Throws:
      SchedulerException
    • getScheduler

      public Scheduler getScheduler() throws SchedulerException
      Returns a handle to the Scheduler produced by this factory.

      If one of the initialize methods has not be previously called, then the default (no-arg) initialize() method will be called by this method.

      Throws:
      SchedulerException