rice
Class Continuation.ErrorContinuation<R,E extends Exception>
java.lang.Object
rice.Continuation.ErrorContinuation<R,E>
- All Implemented Interfaces:
- Continuation<R,E>
- Enclosing interface:
- Continuation<R,E extends Exception>
public abstract static class Continuation.ErrorContinuation<R,E extends Exception>
- extends Object
- implements Continuation<R,E>
This class is a Continuation provided for simplicity which
passes any results up to the parent Continuation which it
is constructed with. Subclasses should implement the
receiveException() method with the appropriate behavior.
| Nested classes/interfaces inherited from interface rice.Continuation |
Continuation.ErrorContinuation<R,E extends Exception>, Continuation.ExternalContinuation<R,E extends Exception>, Continuation.ExternalContinuationRunnable<R,E extends Exception>, Continuation.ExternalRunnable, Continuation.ListenerContinuation<R,E extends Exception>, Continuation.MultiContinuation, Continuation.NamedContinuation, Continuation.SimpleContinuation, Continuation.StandardContinuation<R,E extends Exception> |
|
Method Summary |
void |
receiveResult(R result)
Called when an the result is available. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
parent
protected Continuation<R,E extends Exception> parent
- The parent continuation
Continuation.ErrorContinuation
public Continuation.ErrorContinuation(Continuation<R,E> continuation)
- Constructor which takes in the parent continuation
for this continuation.
- Parameters:
continuation - The parent of this continuation
receiveResult
public void receiveResult(R result)
- Called when an the result is available. Simply passes the result
to the parent;
- Specified by:
receiveResult in interface Continuation<R,E extends Exception>
- Parameters:
result - The result
Copyright © 2010. All Rights Reserved.