|
jMobileCore toolkit | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectcom.jmobilecore.thread.ThreadControl
public class ThreadControl
| Field Summary | |
|---|---|
AdvThread |
thread
The current thread |
| Constructor Summary | |
|---|---|
ThreadControl(java.lang.Runnable task)
|
|
ThreadControl(java.lang.Runnable task,
int frequency)
|
|
| Method Summary | |
|---|---|
void |
destructor()
Default destructor. |
boolean |
reset(int frequency,
int delay)
Resets frecuency and delay for the current thread |
protected boolean |
setTask(java.lang.Runnable task,
int frequency)
Sets the current task and frequency of the task execution |
boolean |
stop()
Stops the current thread |
boolean |
terminate()
Terminates the current thread |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public AdvThread thread
| Constructor Detail |
|---|
public ThreadControl(java.lang.Runnable task)
public ThreadControl(java.lang.Runnable task,
int frequency)
| Method Detail |
|---|
public void destructor()
public boolean reset(int frequency,
int delay)
frequency - the frequency of the task executiondelay - the delay before the first task execution
true if reset is successful, false otherwise
protected boolean setTask(java.lang.Runnable task,
int frequency)
task - the new Runnable taskfrequency - the frequency of the task execution
true if setup is successful, false otherwisepublic boolean stop()
public boolean terminate()
true if termination is done, false otherwise
|
jMobileCore toolkit | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||