Class ReadRecordsResponse<P>
- java.lang.Object
-
- com.broadleafcommerce.bulk.service.ReadRecordsResponse<P>
-
- Type Parameters:
P- the type of the records that will be read
public final class ReadRecordsResponse<P> extends Object
A response returned byBulkUpdateProcessor.readRecordsToProcess(BulkUpdate)indicating the results of attempting to read all of the records to process in an update.- Author:
- Samarth Dhruva (samarthd)
- See Also:
BulkUpdateProcessor.readRecordsToProcess(BulkUpdate)
-
-
Constructor Summary
Constructors Constructor Description ReadRecordsResponse(boolean successful, Stream<P> records, List<BulkUpdateError> errors)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)List<BulkUpdateError>getErrors()Ifsuccessfulis false, then this should contain all of the errors encountered when attempting to read the records.Stream<P>getRecords()Ifsuccessfulis true, then this should contain all of the records in the data store that should be processed in the update, as described byBulkUpdateProcessor.readRecordsToProcess(BulkUpdate).inthashCode()booleanisSuccessful()True if the records were read successfully, false otherwise.StringtoString()
-
-
-
Constructor Detail
-
ReadRecordsResponse
public ReadRecordsResponse(boolean successful, Stream<P> records, List<BulkUpdateError> errors)
-
-
Method Detail
-
isSuccessful
public boolean isSuccessful()
True if the records were read successfully, false otherwise.
-
getRecords
public Stream<P> getRecords()
Ifsuccessfulis true, then this should contain all of the records in the data store that should be processed in the update, as described byBulkUpdateProcessor.readRecordsToProcess(BulkUpdate).
-
getErrors
public List<BulkUpdateError> getErrors()
Ifsuccessfulis false, then this should contain all of the errors encountered when attempting to read the records. These will be used byBulkUpdateManagerand set on the correspondingBulkUpdate.
-
-