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, yield
public void shutItDown()
IExecutorThread
shutItDown
in interface IExecutorThread
public void startItUp()
IExecutorThread
startItUp
in interface IExecutorThread
public void waitUntilDone() throws java.lang.InterruptedException
IExecutorThread
waitUntilDone
in interface IExecutorThread
java.lang.InterruptedException
- if thread interrupted.public void run()
run
in interface java.lang.Runnable
run
in class java.lang.Thread