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
ConstructorDescriptionQuartzSchedulerThread
(QuartzScheduler qs, QuartzSchedulerResources qsRsrcs) Construct a newQuartzSchedulerThread
for the givenQuartzScheduler
as a non-daemonThread
with normal priority. -
Method Summary
Modifier and TypeMethodDescriptionlong
void
halt()
Signals the main processing loop to pause at the next possible point.boolean
isPaused()
boolean
void
run()
The main processing loop of theQuartzSchedulerThread
.void
togglePause
(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 newQuartzSchedulerThread
for the givenQuartzScheduler
as a non-daemonThread
with 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
.
-