rice.post.log
Class Log.AddLogEntryTask
java.lang.Object
rice.post.log.Log.AddLogEntryTask
-
All Implemented Interfaces:
- Continuation
- Enclosing class:
- Log
-
protected class Log.AddLogEntryTask
- extends java.lang.Object
- implements Continuation
This class encapsulates the logic needed to add a log entry to
the current log.
Constructor Summary |
protected |
Log.AddLogEntryTask(LogEntry entry,
Continuation command)
This construct will build an object which will call the given
command once processing has been completed, and will provide
a result. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
STATE_1
public static final int STATE_1
- See Also:
- Constant Field Values
STATE_2
public static final int STATE_2
- See Also:
- Constant Field Values
Log.AddLogEntryTask
protected Log.AddLogEntryTask(LogEntry entry,
Continuation command)
- This construct will build an object which will call the given
command once processing has been completed, and will provide
a result.
- Parameters:
-
entry
- The log entry to add-
command
- The command to call
setCommand
public void setCommand(Continuation command)
-
-
start
public void start()
-
-
receiveResult
public void receiveResult(java.lang.Object o)
- Description copied from interface:
Continuation
- Called when a previously requested result is now availble.
-
- Specified by:
-
receiveResult
in interface Continuation
-
- Parameters:
-
o
- The result of the command.
receiveException
public void receiveException(java.lang.Exception result)
- Called when a previously requested result causes an exception
-
- Specified by:
-
receiveException
in interface Continuation
-
- Parameters:
-
result
- The exception caused
Copyright © 2001-2005 - Rice Pastry.