public class ExampleThread extends java.lang.Thread implements IExecutorThread
| Modifier and Type | Field and Description |
|---|---|
(package private) java.awt.Rectangle |
rec |
| Constructor and Description |
|---|
ExampleThread(java.awt.Rectangle rec) |
| Modifier and Type | Method and Description |
|---|---|
void |
run()
When run as a thread, this class must respond to interrupts
sent by the Commander so that it may be stopped.
|
void |
shutItDown()
When a class implementing this interface is run by an Executor,
eventually a Commander may want to stop it.
|
void |
startItUp()
When a class implementing this interface is run by an Executor,
it calls this method to do so.
|
void |
waitUntilDone()
When a class implementing this interface is run by an Executor,
a Commander may want to wait until it finished running.
|
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, yieldpublic void shutItDown()
IExecutorThreadshutItDown in interface IExecutorThreadpublic void startItUp()
IExecutorThreadstartItUp in interface IExecutorThreadpublic void waitUntilDone()
throws java.lang.InterruptedException
IExecutorThreadwaitUntilDone in interface IExecutorThreadjava.lang.InterruptedException - if thread interrupted.public void run()
run in interface java.lang.Runnablerun in class java.lang.Thread