Class C4CBatchingCollector
- java.lang.Object
-
- de.hybris.platform.c4ccustomer.deltadetection.collector.C4CBatchingCollector
-
- All Implemented Interfaces:
ChangesCollector,BatchingCollector
public class C4CBatchingCollector extends java.lang.Object implements BatchingCollector
-
-
Constructor Summary
Constructors Constructor Description C4CBatchingCollector(java.lang.String mediaCodePrefix, int batchSize, ModelService modelService, MediaService mediaService)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancollect(ItemChangeDTO change)Collects the given change in a specified way.voidfinish()Finishes the collecting changes, depending on implementation, may be used as kind of post processing after finalizing collecting the changes.java.util.Set<java.lang.String>getCollectedItems()java.util.List<PK>getPksOfBatches()voidsetCollectedItems(java.util.Set<java.lang.String> collectedItems)voidsetId(java.lang.String id)
-
-
-
Constructor Detail
-
C4CBatchingCollector
public C4CBatchingCollector(java.lang.String mediaCodePrefix, int batchSize, ModelService modelService, MediaService mediaService)
-
-
Method Detail
-
collect
public boolean collect(ItemChangeDTO change)
Description copied from interface:ChangesCollectorCollects the given change in a specified way.- Specified by:
collectin interfaceChangesCollector- Parameters:
change- change to be collected- Returns:
true, if the collecting process should continue,falseotherwise
-
finish
public void finish()
Description copied from interface:ChangesCollectorFinishes the collecting changes, depending on implementation, may be used as kind of post processing after finalizing collecting the changes. E.g. a csv report can be generated here.- Specified by:
finishin interfaceChangesCollector
-
getPksOfBatches
public java.util.List<PK> getPksOfBatches()
- Specified by:
getPksOfBatchesin interfaceBatchingCollector
-
setId
public void setId(java.lang.String id)
- Specified by:
setIdin interfaceBatchingCollector
-
getCollectedItems
public java.util.Set<java.lang.String> getCollectedItems()
-
setCollectedItems
public void setCollectedItems(java.util.Set<java.lang.String> collectedItems)
-
-