Class DefaultBatchManager
java.lang.Object
com.broadleafcommerce.dataimport.processor.DefaultBatchManager
- All Implemented Interfaces:
BatchManager
- Author:
- Phillip Verheyden (phillipuniverse)
-
Constructor Summary
ConstructorDescriptionDefaultBatchManager
(BatchService<Batch> batchService, com.broadleafcommerce.common.extension.TypeFactory typeFactory) -
Method Summary
Modifier and TypeMethodDescriptionvoid
allBatchesCompleted
(Import metadata) Once all of the batches have been read and processedprotected BatchService<Batch>
protected com.broadleafcommerce.common.extension.TypeFactory
void
processBatch
(List<com.broadleafcommerce.common.dataimport.messaging.BatchRecord> records, Import metadata) Given a batch of items that have been read from a flat file, this is responsible for the processing after reading.
-
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 interfaceBatchManager
-
allBatchesCompleted
Description copied from interface:BatchManager
Once all of the batches have been read and processed- Specified by:
allBatchesCompleted
in interfaceBatchManager
-
getTypeFactory
@NonNull protected com.broadleafcommerce.common.extension.TypeFactory getTypeFactory() -
getBatchService
-