org.asunder.dhtapi
Interface DHTContinuation

All Known Subinterfaces:
DHTGetListener, DHTPutListener, DHTTransferListener

public interface DHTContinuation

This interface is identical to rice.Continuation, but is declared in org.asunder.dhtapi to keep the DHT API separate from the KBR API

Author:
simms2k

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.
 

Method Detail

receiveResult

void receiveResult(java.lang.Object result)
Called when a previously requested result is now availble.

Parameters:
result - The result of the command.

receiveException

void receiveException(java.lang.Exception result)
Called when an execption occured as a result of the previous command.

Parameters:
result - The exception which was caused.