rice
Class Continuation.ListenerContinuation
java.lang.Object
rice.Continuation.ListenerContinuation
- All Implemented Interfaces:
- Continuation
- Enclosing interface:
- Continuation
public static class Continuation.ListenerContinuation
- extends java.lang.Object
- implements Continuation
This class is a Continuation provided for simplicity which
listens for any errors and ignores any success values. This
Continuation is provided for testing convience only and should *NOT* be
used in production environment.
Field Summary |
protected Logger |
logger
|
protected java.lang.String |
name
The name of this continuation |
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. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
name
protected java.lang.String name
- The name of this continuation
logger
protected Logger logger
Continuation.ListenerContinuation
public Continuation.ListenerContinuation(java.lang.String name,
Environment env)
- Constructor which takes in a name
- Parameters:
name
- A name which uniquely identifies this contiuation for
debugging purposes
receiveResult
public void receiveResult(java.lang.Object result)
- Called when a previously requested result is now availble. Does
absolutely nothing.
- Specified by:
receiveResult
in interface Continuation
- Parameters:
result
- The result
receiveException
public void receiveException(java.lang.Exception result)
- Called when an execption occured as a result of the
previous command. Simply prints an error message to the screen.
- Specified by:
receiveException
in interface Continuation
- Parameters:
result
- The exception which was caused.
Copyright © 2001-2005 - Rice Pastry.