|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.hedenus.mobilegui.Worker
public class Worker
A worker thread which performs jobs for the GUI.
Constructor Summary | |
---|---|
Worker()
|
Method Summary | |
---|---|
void |
addJob(java.lang.Runnable job)
|
void |
finish()
This will finish the worker and abandon any pending job. |
void |
handleException(java.lang.Throwable t)
Fall-back method to handle an uncaught exception thrown by a job's run() or done() method. |
boolean |
isFinish()
|
void |
run()
|
java.lang.Object |
semaphore()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Worker()
Method Detail |
---|
public void run()
run
in interface java.lang.Runnable
public void handleException(java.lang.Throwable t)
run()
or done()
method.
public java.lang.Object semaphore()
public void addJob(java.lang.Runnable job)
public boolean isFinish()
public void finish()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |