public class CancellableThread extends java.lang.Thread implements Cancellable
| Constructor and Description |
|---|
CancellableThread() |
| Modifier and Type | Method and Description |
|---|---|
void |
cancel()
Sets the cancel flag within this thread
|
void |
checkCancelled() |
java.lang.String |
toString() |
ToString |
toString(ToString s) |
boolean |
wasCancelled()
Checks whether the cancel flag has been set
|
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, yieldpublic void checkCancelled()
public void cancel()
cancel in interface Cancellablepublic boolean wasCancelled()
wasCancelled in interface Cancellablepublic java.lang.String toString()
toString in class java.lang.ThreadCopyright © 2014 EsprIT-Systems. All Rights Reserved.