Package org.quartz.core
Class QuartzSchedulerThread
java.lang.Object
java.lang.Thread
org.quartz.core.QuartzSchedulerThread
- All Implemented Interfaces:
Runnable
The thread responsible for performing the work of firing
Trigger s that are
registered with the QuartzScheduler.- Author:
- James House
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Thread
Thread.BuilderPREVIEW, Thread.State, Thread.UncaughtExceptionHandler -
Field Summary
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY -
Constructor Summary
ConstructorsConstructorDescriptionQuartzSchedulerThread(QuartzScheduler qs, QuartzSchedulerResources qsRsrcs) Construct a newQuartzSchedulerThreadfor the givenQuartzScheduleras a non-daemonThreadwith normal priority. -
Method Summary
Modifier and TypeMethodDescriptionlongvoidhalt()Signals the main processing loop to pause at the next possible point.booleanisPaused()booleanvoidrun()The main processing loop of theQuartzSchedulerThread.voidtogglePause(boolean pause) Signals the main processing loop to pause at the next possible point.Methods inherited from class java.lang.Thread
activeCount, checkAccess, clone, countStackFrames, currentThread, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, isVirtual, join, join, join, join, ofPlatform, ofVirtual, onSpinWait, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, sleep, start, startVirtualThread, stop, suspend, threadId, toString, yield
-
Constructor Details
-
QuartzSchedulerThread
Construct a newQuartzSchedulerThreadfor the givenQuartzScheduleras a non-daemonThreadwith normal priority.
-
-
Method Details
-
togglePause
public void togglePause(boolean pause) Signals the main processing loop to pause at the next possible point. -
halt
public void halt()Signals the main processing loop to pause at the next possible point. -
isPaused
public boolean isPaused() -
isScheduleChanged
public boolean isScheduleChanged() -
getSignaledNextFireTime
public long getSignaledNextFireTime() -
run
public void run()The main processing loop of theQuartzSchedulerThread.
-