|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.cycling74.max.MaxQelem
public class MaxQelem
Background job utility class. This is used to execute code in the
background that might take time to execute. Calling set
will trigger/execute the "job". If set is called while
the "job" is running, the "job" won't be called again.
On PDJ, a Qelem is simply a Java thread that wait to be triggered.
| Constructor Summary | |
|---|---|
MaxQelem()
Constructs a Qelem that is bound the overriden class with method name qfn. |
|
MaxQelem(Executable exec)
Constructs a Qelem that is bound to an executable. |
|
MaxQelem(Object src,
String method)
Constructs a Qelem that is bound to a class with method name. |
|
| Method Summary | |
|---|---|
void |
front()
Puts thread in front execution. |
Executable |
getExecutable()
Returns the executable object. |
void |
qfn()
The callback method, otherwise it calls the 'executable' method provided in constructor. |
void |
release()
Releases current Qelem and cancel the running thread. |
void |
set()
Ask qfn to execute. |
void |
unset()
Cancels execution of qelem. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MaxQelem()
public MaxQelem(Executable exec)
exec - the executable to run
public MaxQelem(Object src,
String method)
src - the object that contains the methodmethod - the method to execute| Method Detail |
|---|
public void front()
public void qfn()
public void set()
public void unset()
public void release()
public Executable getExecutable()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||