Class DefaultBatchManager

java.lang.Object
com.broadleafcommerce.dataimport.processor.DefaultBatchManager
All Implemented Interfaces:
BatchManager

public class DefaultBatchManager extends Object implements BatchManager
Author:
Phillip Verheyden (phillipuniverse)
  • Constructor Details

    • DefaultBatchManager

      public DefaultBatchManager(BatchService<Batch> batchService, com.broadleafcommerce.common.extension.TypeFactory typeFactory)
  • Method Details

    • processBatch

      public void processBatch(List<com.broadleafcommerce.common.dataimport.messaging.BatchRecord> records, Import metadata)
      Description copied from interface: BatchManager
      Given a batch of items that have been read from a flat file, this is responsible for the processing after reading. This will generally publish a message to a broker to handle the persistence of these records within a particular resource tier
      Specified by:
      processBatch in interface BatchManager
    • allBatchesCompleted

      public void allBatchesCompleted(Import metadata)
      Description copied from interface: BatchManager
      Once all of the batches have been read and processed
      Specified by:
      allBatchesCompleted in interface BatchManager
    • getTypeFactory

      @NonNull protected com.broadleafcommerce.common.extension.TypeFactory getTypeFactory()
    • getBatchService

      @NonNull protected BatchService<Batch> getBatchService()