public class ResultCollector
extends java.lang.Object
| Constructor and Description |
|---|
ResultCollector(ParameterAccessor paramAccessor,
Log log,
boolean dropRecordOnError) |
| Modifier and Type | Method and Description |
|---|---|
void |
addFailedResult(java.lang.String recordId,
java.lang.Exception ex) |
void |
addResult(java.lang.String recordId) |
java.lang.String[] |
getResultIds() |
public ResultCollector(ParameterAccessor paramAccessor, Log log, boolean dropRecordOnError)
paramAccessor - of the hosting config, needed to access failOnError parameterlog - the log for which to log the error resultsdropRecordOnError - public void addResult(java.lang.String recordId)
recordId - record id of successful resultpublic void addFailedResult(java.lang.String recordId,
java.lang.Exception ex)
throws ProcessingException
recordId - record id of failed resultex - exception that will be logged resp. thrown if failOnError=trueProcessingException - will be thrown if failOnError=truepublic java.lang.String[] getResultIds()