Rice Pastry API

rice
Class Continuation.StandardContinuation

java.lang.Object
  extended by rice.Continuation.StandardContinuation
All Implemented Interfaces:
Continuation
Enclosing interface:
Continuation

public abstract static class Continuation.StandardContinuation
extends java.lang.Object
implements Continuation

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, Continuation.ExternalContinuation, Continuation.ExternalContinuationRunnable, Continuation.ExternalRunnable, Continuation.ListenerContinuation, Continuation.MultiContinuation, Continuation.NamedContinuation, Continuation.SimpleContinuation, Continuation.StandardContinuation
 
Field Summary
protected  Continuation parent
          The parent continuation
 
Constructor Summary
Continuation.StandardContinuation(Continuation continuation)
          Constructor which takes in the parent continuation for this continuation.
 
Method Summary
 void receiveException(java.lang.Exception result)
          Called when an execption occured 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

parent

protected Continuation parent
The parent continuation

Constructor Detail

Continuation.StandardContinuation

public Continuation.StandardContinuation(Continuation continuation)
Constructor which takes in the parent continuation for this continuation.

Parameters:
continuation - The parent of this continuation
Method Detail

receiveException

public void receiveException(java.lang.Exception result)
Called when an execption occured as a result of the previous command. Simply calls the parent continuation's receiveResult() method.

Specified by:
receiveException in interface Continuation
Parameters:
result - The exception which was caused.

Rice Pastry API

Copyright © 2001-2005 - Rice Pastry.


Imprint-Dataprotection