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, yield
public void checkCancelled()
public void cancel()
cancel
in interface Cancellable
public boolean wasCancelled()
wasCancelled
in interface Cancellable
public java.lang.String toString()
toString
in class java.lang.Thread
Copyright © 2014 EsprIT-Systems. All Rights Reserved.