public class WorkingThread
extends java.lang.Thread
Constructor and Description |
---|
WorkingThread(java.lang.String threadName,
Job job)
This constructor must be called from Job.doIt method.
|
Modifier and Type | Method and Description |
---|---|
void |
initRun()
Call this method at the beginning of #run method
|
void |
run() |
static int |
setHistoryListSize(int newSize)
Method to set the size of the history list and return the former size.
|
activeCount, checkAccess, clone, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield
public WorkingThread(java.lang.String threadName, Job job)
threadName
- Name of working threadjob
- launching Jobpublic void initRun()
public void run()
run
in interface java.lang.Runnable
run
in class java.lang.Thread
public static int setHistoryListSize(int newSize)
newSize
- the new size of the history list (number of batches of changes).
If not positive, the list size is not changed.