com.twistedmatrix.spread.pb
Interface Callback
- All Known Implementing Classes:
- ResultCallback
- public interface Callback
An object that can be used as a callback.
When implementing a callback is best to assume that it will be called from
a different thread, and therefore the class must make sure it is thread-safe.
Method Summary |
void |
errorCallback(ByteString 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. |
resultCallback
public void resultCallback(java.lang.Object result)
- The callback for when a command returns a result.
errorCallback
public void errorCallback(ByteString reason)
- The callback for when a command returns an error.