|
Rice Pastry API | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object rice.Continuation.ExternalContinuation
This class provides a continuation which is designed to be used from an external thread. Applications should construct this continuation pass it in to the appropriate method, and then call sleep(). Once the thread is woken up, the user should check exceptionThrown() to determine if an error was caused, and then call getException() or getResult() as apprpritate.
Nested Class Summary |
Field Summary | |
protected boolean |
done
DESCRIBE THE FIELD |
protected java.lang.Exception |
exception
DESCRIBE THE FIELD |
protected java.lang.Object |
result
DESCRIBE THE FIELD |
Constructor Summary | |
Continuation.ExternalContinuation()
|
Method Summary | |
boolean |
exceptionThrown()
DESCRIBE THE METHOD |
java.lang.Exception |
getException()
Gets the Exception attribute of the ExternalContinuation object |
java.lang.Object |
getResult()
Gets the Result attribute of the ExternalContinuation object |
void |
receiveException(java.lang.Exception e)
DESCRIBE THE METHOD |
void |
receiveResult(java.lang.Object o)
DESCRIBE THE METHOD |
void |
sleep()
DESCRIBE THE METHOD |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected java.lang.Exception exception
protected java.lang.Object result
protected boolean done
Constructor Detail |
public Continuation.ExternalContinuation()
Method Detail |
public java.lang.Object getResult()
public java.lang.Exception getException()
public void receiveResult(java.lang.Object o)
receiveResult
in interface Continuation
o
- DESCRIBE THE PARAMETERpublic void receiveException(java.lang.Exception e)
receiveException
in interface Continuation
e
- DESCRIBE THE PARAMETERpublic void sleep()
public boolean exceptionThrown()
|
Rice Pastry API | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |