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 by BulkUpdateProcessor.readRecordsToProcess(BulkUpdate) indicating the results of attempting to read all of the records to process in an update.
Author:
Samarth Dhruva (samarthd)
See Also:
  • Constructor Details

  • Method Details

    • isSuccessful

      public boolean isSuccessful()
      True if the records were read successfully, false otherwise.
    • getRecords

      public Stream<P> getRecords()
      If successful is true, then this should contain all of the records in the data store that should be processed in the update, as described by BulkUpdateProcessor.readRecordsToProcess(BulkUpdate).
    • getErrors

      public List<BulkUpdateError> getErrors()
      If successful is false, then this should contain all of the errors encountered when attempting to read the records. These will be used by BulkUpdateManager and set on the corresponding BulkUpdate.
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object