|
Rice Pastry API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object rice.Continuation.StandardContinuation<R,E>
public abstract static class Continuation.StandardContinuation<R,E extends java.lang.Exception>
This class is a Continuation provided for simplicity which passes any errors up to the parent Continuation which it is constructed with. Subclasses should implement the receiveResult() method with the appropriate behavior.
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface rice.Continuation |
---|
Continuation.ErrorContinuation<R,E extends java.lang.Exception>, Continuation.ExternalContinuation<R,E extends java.lang.Exception>, Continuation.ExternalContinuationRunnable<R,E extends java.lang.Exception>, Continuation.ExternalRunnable, Continuation.ListenerContinuation<R,E extends java.lang.Exception>, Continuation.MultiContinuation, Continuation.NamedContinuation, Continuation.SimpleContinuation, Continuation.StandardContinuation<R,E extends java.lang.Exception> |
Field Summary | |
---|---|
protected Continuation<R,E> |
parent
The parent continuation |
Constructor Summary | |
---|---|
Continuation.StandardContinuation(Continuation<R,E> continuation)
Constructor which takes in the parent continuation for this continuation. |
Method Summary | |
---|---|
void |
receiveException(E result)
Called when an exception occurred as a result of the previous command. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface rice.Continuation |
---|
receiveResult |
Field Detail |
---|
protected Continuation<R,E extends java.lang.Exception> parent
Constructor Detail |
---|
public Continuation.StandardContinuation(Continuation<R,E> continuation)
continuation
- The parent of this continuationMethod Detail |
---|
public void receiveException(E result)
receiveException
in interface Continuation<R,E extends java.lang.Exception>
result
- The exception which was caused.
|
Rice Pastry API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |