public class CancelableThread
extends java.lang.Thread
| Constructor and Description |
|---|
CancelableThread() |
CancelableThread(java.lang.Runnable runnable) |
| Modifier and Type | Method and Description |
|---|---|
void |
cancel()
Cancels this thread
|
static boolean |
currIsCanceled()
Returns
true if the current thread is canceled |
boolean |
isCanceled()
Returns
true if this thread is canceled |
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, run, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yieldpublic CancelableThread()
public CancelableThread(java.lang.Runnable runnable)
public static boolean currIsCanceled()
true if the current thread is canceledtrue if the current thread is canceledpublic boolean isCanceled()
true if this thread is canceledtrue if this thread is canceledpublic void cancel()