|
soap tutorial | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectadriani.jws.template.util.GeneralThread
public abstract class GeneralThread
The parent class for all the Thread
classes used by this project.
For the time being this class is used only by the RotateThread
class.
Field Summary | |
---|---|
boolean |
active
If false no operation is performed during the main "run-cycle". |
boolean |
running
If false the wrapped Thread exits from the endless loop and stops. |
java.lang.Thread |
theThread
The Thread wrapped by this class. |
Constructor Summary | |
---|---|
GeneralThread()
|
Method Summary | |
---|---|
void |
delay(long time)
Stops this thread for few milliseconds. |
boolean |
isActive()
Specifies if this thread is ACTIVE (i.e. if it's set to perform his duty). |
boolean |
isRunning()
Specifies if this thread is RUNNING (i.e. if it's still running the While loop). |
void |
setActive(boolean value)
Specifies if this thread must perform his duty. |
void |
stopCycle()
Stop the endless while loop contained in the run() method. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public java.lang.Thread theThread
Thread
wrapped by this class.
public boolean active
false
no operation is performed during the main "run-cycle".
public boolean running
false
the wrapped Thread
exits from the endless loop and stops.
Constructor Detail |
---|
public GeneralThread()
Method Detail |
---|
public void setActive(boolean value)
false
the thread continues to cycle
his endless loop, but does NOT execute the task within the endless loop.
value
- if false
no operation is performed during the main run cyclepublic void stopCycle()
run()
method. This will terminate
execution of the run()
method.
public boolean isActive()
true
if this thread is activepublic boolean isRunning()
false
then the endless loop is terminated and the run()
has finished
execution.
true
if this thread is runningpublic void delay(long time)
time
- the time (in milliseconds) that this thread must be stopped
|
Build 18/09/2012 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |