@Deprecated public class WorkThread extends java.lang.Thread implements ThreadAbortMonitor
ThreadUtilities
Modifier and Type | Class and Description |
---|---|
static class |
WorkThread.Abort
Deprecated.
|
Constructor and Description |
---|
WorkThread(WorkThreadPool pool,
java.lang.ThreadGroup group,
java.lang.String name)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
void |
abortCurrentRequest()
Deprecated.
Aborts the currently running request, if allowed.
|
int |
getProgressMaximum()
Deprecated.
Returns the progress maximum.
|
int |
getProgressValue()
Deprecated.
Returns the progress value.
|
java.lang.String |
getStatus()
Deprecated.
Returns the status text.
|
boolean |
isAborted()
Deprecated.
|
boolean |
isRequestRunning()
Deprecated.
Returns if the work thread is currently running a request.
|
void |
run()
Deprecated.
|
void |
setAbortable(boolean abortable)
Deprecated.
Sets if the current request can be aborted.
|
void |
setProgressMaximum(int progressMaximum)
Deprecated.
Sets the maximum progress value.
|
void |
setProgressValue(int progressValue)
Deprecated.
Sets the progress value.
|
void |
setStatus(java.lang.String status)
Deprecated.
Sets the status text.
|
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 WorkThread(WorkThreadPool pool, java.lang.ThreadGroup group, java.lang.String name)
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