|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--java.lang.Thread
|
+--com.zwares.base.util.StoppableThread
| Field Summary | |
static int |
RUN
|
static int |
STOP
|
static int |
WAIT
|
| Fields inherited from class java.lang.Thread |
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
| Constructor Summary | |
StoppableThread()
|
|
| Method Summary | |
abstract void |
performAction()
|
void |
run()
|
void |
setState(int state)
|
void |
stopImmediately()
|
| Methods inherited from class java.lang.Thread |
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getContextClassLoader, getName, getPriority, getThreadGroup, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setName, setPriority, 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 |
| Field Detail |
public static final int STOP
public static final int RUN
public static final int WAIT
| Constructor Detail |
public StoppableThread()
| Method Detail |
public void stopImmediately()
throws java.lang.SecurityException
java.lang.SecurityExceptionpublic void setState(int state)
public void run()
run in interface java.lang.Runnablerun in class java.lang.Threadpublic abstract void performAction()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||