Package org.quartz.core
Class SchedulerFactory
java.lang.Object
org.quartz.core.SchedulerFactory
An implementation of
SchedulerFactory that does all of its
work of creating a QuartzScheduler instance.- Author:
- James House, Anthony Eden, Mohammad Rezaei, timmolter
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns a handle to the Scheduler produced by this factory.getScheduler(int threadPoolSize) getScheduler(int threadPoolSize, String packageName) getScheduler(ExecutorService executorService, String packageName)
-
Constructor Details
-
SchedulerFactory
public SchedulerFactory()
-
-
Method Details
-
getScheduler
public Scheduler getScheduler(ExecutorService executorService, String packageName) throws SchedulerException - Parameters:
executorService- an existing ExecutorService to use for job execution. The caller is responsible for its lifecycle — Sundial will not shut it down.packageName-- Returns:
- Returns a handle to the Scheduler produced by this factory.
- Throws:
SchedulerException
-
getScheduler
- 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
- Parameters:
threadPoolSize-- Returns:
- Returns a handle to the Scheduler produced by this factory. Initialized with given threadPoolSize
- Throws:
SchedulerException
-
getScheduler
Returns a handle to the Scheduler produced by this factory.If one of the
initializemethods has not be previously called, then the default (no-arg)initialize()method will be called by this method.- Throws:
SchedulerException
-