com.twistedmatrix.spread.pb
Class ResultCallback

java.lang.Object
  |
  +--com.twistedmatrix.spread.pb.ResultCallback
All Implemented Interfaces:
Callback

public class ResultCallback
extends java.lang.Object
implements Callback

The result of a PB message to a referenceable.


Constructor Summary
ResultCallback(Broker broker, java.lang.Integer requestID)
          Create a new result.
 
Method Summary
 void errorCallback(Failure reason)
          The callback for when a command returns an error.
 void resultCallback(java.lang.Object result)
          The callback for when a command returns a result.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ResultCallback

public ResultCallback(Broker broker,
                      java.lang.Integer requestID)
Create a new result.
Method Detail

resultCallback

public void resultCallback(java.lang.Object result)
The callback for when a command returns a result.
Specified by:
resultCallback in interface Callback

errorCallback

public void errorCallback(Failure reason)
The callback for when a command returns an error.
Specified by:
errorCallback in interface Callback