|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.Thread
org.gjt.sp.util.WorkThread
public class WorkThread
Services work requests in the background.
Nested Class Summary | |
---|---|
static class |
WorkThread.Abort
|
Nested classes/interfaces inherited from class java.lang.Thread |
---|
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler |
Field Summary |
---|
Fields inherited from class java.lang.Thread |
---|
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
Constructor Summary | |
---|---|
WorkThread(WorkThreadPool pool,
java.lang.ThreadGroup group,
java.lang.String name)
|
Method Summary | |
---|---|
void |
abortCurrentRequest()
Aborts the currently running request, if allowed. |
int |
getProgressMaximum()
Returns the progress maximum. |
int |
getProgressValue()
Returns the progress value. |
java.lang.String |
getStatus()
Returns the status text. |
boolean |
isAborted()
|
boolean |
isRequestRunning()
Returns if the work thread is currently running a request. |
void |
run()
|
void |
setAbortable(boolean abortable)
Sets if the current request can be aborted. |
void |
setProgressMaximum(int progressMaximum)
Sets the maximum progress value. |
void |
setProgressValue(int progressValue)
Sets the progress value. |
void |
setStatus(java.lang.String status)
Sets the status text. |
Methods inherited from class java.lang.Thread |
---|
activeCount, checkAccess, 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 |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public WorkThread(WorkThreadPool pool, java.lang.ThreadGroup group, java.lang.String name)
Method Detail |
---|
public void setAbortable(boolean abortable)
abortable
- true if the WorkThread is abortablepublic boolean isRequestRunning()
public boolean isAborted()
isAborted
in interface ThreadAbortMonitor
public java.lang.String getStatus()
public void setStatus(java.lang.String status)
status
- the new status of the threadpublic int getProgressValue()
public void setProgressValue(int progressValue)
progressValue
- the new progress valuepublic int getProgressMaximum()
public void setProgressMaximum(int progressMaximum)
progressMaximum
- the maximum value of the progressionpublic void abortCurrentRequest()
public void run()
run
in interface java.lang.Runnable
run
in class java.lang.Thread
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |