Class MediaBatchingCollector
java.lang.Object
de.hybris.y2ysync.deltadetection.collector.MediaBatchingCollector
- All Implemented Interfaces:
ChangesCollector,BatchingCollector
-
Constructor Summary
ConstructorsConstructorDescriptionMediaBatchingCollector(String mediaCodePrefix, int batchSize, ModelService modelService, MediaService mediaService) -
Method Summary
Modifier and TypeMethodDescriptionbooleancollect(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.void
-
Constructor Details
-
MediaBatchingCollector
public MediaBatchingCollector(String mediaCodePrefix, int batchSize, ModelService modelService, MediaService mediaService)
-
-
Method Details
-
collect
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
- Specified by:
getPksOfBatchesin interfaceBatchingCollector
-
setId
- Specified by:
setIdin interfaceBatchingCollector
-