com.amazonaws.mturk.addon
Interface BatchItemCallback


public interface BatchItemCallback

Interface to implement callback functionality for batches when an item in the batch was processed.


Method Summary
 void processItemResult(java.lang.Object itemId, boolean succeeded, java.lang.Object result, java.lang.Exception itemException)
          Notifies the callback handler that an item was processed
 

Method Detail

processItemResult

void processItemResult(java.lang.Object itemId,
                       boolean succeeded,
                       java.lang.Object result,
                       java.lang.Exception itemException)
Notifies the callback handler that an item was processed

Parameters:
itemId - Identifier for the item in the submitted batch
succeeded - true, if item was successfully processed (no exception)
result - The result returned if the item was successfully processed
itemException - The exception that was raised when the item failed to process successfully