Class MediaBatchingCollector

java.lang.Object
de.hybris.y2ysync.deltadetection.collector.MediaBatchingCollector
All Implemented Interfaces:
ChangesCollector, BatchingCollector

public class MediaBatchingCollector extends Object implements BatchingCollector
  • Constructor Details

    • MediaBatchingCollector

      public MediaBatchingCollector(String mediaCodePrefix, int batchSize, ModelService modelService, MediaService mediaService)
  • Method Details

    • collect

      public boolean collect(ItemChangeDTO change)
      Description copied from interface: ChangesCollector
      Collects the given change in a specified way.
      Specified by:
      collect in interface ChangesCollector
      Parameters:
      change - change to be collected
      Returns:
      true, if the collecting process should continue, false otherwise
    • finish

      public void finish()
      Description copied from interface: ChangesCollector
      Finishes 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:
      finish in interface ChangesCollector
    • getPksOfBatches

      public List<PK> getPksOfBatches()
      Specified by:
      getPksOfBatches in interface BatchingCollector
    • setId

      public void setId(String id)
      Specified by:
      setId in interface BatchingCollector