|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Asynchronously receives the result to a given method call, using the command pattern. Implementations of this class contain the remainder of a computation which included an asynchronous method call. When the result to the call becomes available, the receiveResult method on this command is called.
Nested Class Summary | |
static class |
Continuation.ExternalContinuation
This class provides a continuation which is designed to be used from an external thread. |
static class |
Continuation.ListenerContinuation
This class is a Continuation provided for simplicity which listens for any errors and ignores any success values. |
static class |
Continuation.StandardContinuation
This class is a Continuation provided for simplicity which passes any errors up to the parent Continuation which it is constructed with. |
Method Summary | |
void |
receiveException(java.lang.Exception result)
Called when an execption occured as a result of the previous command. |
void |
receiveResult(java.lang.Object result)
Called when a previously requested result is now availble. |
Method Detail |
public void receiveResult(java.lang.Object result)
result
- The result of the command.public void receiveException(java.lang.Exception result)
result
- The exception which was caused.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |