public interface Controllable
ThreadController
Modifier and Type | Method and Description |
---|---|
void |
addThreadDoneListener(ThreadDoneListener l)
Adds the specified ThreadDoneListener to receive thread done events.
|
void |
runCore()
Runs the core functionality to be defined by sub class.
|
void |
setThreadController(ThreadController threadController)
Set the thread controller.
|
void |
start()
Causes this thread to begin execution; the Java Virtual Machine
calls the
run method of this thread. |
void setThreadController(ThreadController threadController)
threadController
- the thread controller to use.void addThreadDoneListener(ThreadDoneListener l)
ThreadDoneEvent
void start()
run
method of this thread.
The result is that two threads are running concurrently: the
current thread (which returns from the call to the
start
method) and the other thread (which executes its
run
method).
java.lang.IllegalThreadStateException
- if the thread was already
started.Thread.run()
void runCore()
Copyright 1998-2023 Christoph Mueller, Kaerntner Str. 56, D-70469 Stuttgart, Germany, https://www.perpus.de