Overview | Package | Class | Use | Tree | Deprecated | Index | Help
| Rice Pastry API
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## rice
Class Continuation.StandardContinuation

    java.lang.Object
      rice.Continuation.StandardContinuation

All Implemented Interfaces:
  Continuation

Enclosing class:
  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.

Version:
  $Id: pretty.settings,v 1.3 2005/03/11 20:22:33 jeffh Exp $
Author:
  jeffh

Nested Class Summary

Nested classes inherited from class rice.Continuation
`Continuation.ErrorContinuation, Continuation.ExternalContinuation, 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.

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
| Rice Pastry API
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2001-2005 - Rice Pastry.