|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcommon.threads.WorkRequest
A work request to the thread pool. Allow other threads to wait until the "runnable" is finished.
Constructor Summary | |
WorkRequest(java.lang.Runnable work)
|
Method Summary | |
java.lang.Exception |
getError()
Returns any exception that was caught while running the request. |
protected java.lang.Runnable |
getRunnable()
|
boolean |
isDone()
|
protected void |
run()
|
void |
waitFor()
Waits until the running job is finished. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public WorkRequest(java.lang.Runnable work)
Method Detail |
public void waitFor() throws java.lang.InterruptedException
java.lang.InterruptedException
public boolean isDone()
public java.lang.Exception getError()
protected void run()
protected java.lang.Runnable getRunnable()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |