Package com.xxl.job.core.thread
Class JobThread
java.lang.Object
java.lang.Thread
com.xxl.job.core.thread.JobThread
- All Implemented Interfaces:
Runnable
handler thread
- Author:
- xuxueli 2016-1-16 19:52:47
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Thread
Thread.State, Thread.UncaughtExceptionHandler -
Field Summary
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanis running jobpushTriggerQueue(TriggerParam triggerParam) new trigger to queuevoidrun()voidkill job threadMethods 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, join, join, join, onSpinWait, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, suspend, toString, yield
-
Constructor Details
-
JobThread
-
-
Method Details
-
getHandler
-
pushTriggerQueue
new trigger to queue- Parameters:
triggerParam-- Returns:
-
toStop
kill job thread- Parameters:
stopReason-
-
isRunningOrHasQueue
public boolean isRunningOrHasQueue()is running job- Returns:
-
run
public void run()
-