Class C4CBatchingCollector

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean collect​(ItemChangeDTO change)
      Collects the given change in a specified way.
      void finish()
      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()  
      void setCollectedItems​(java.util.Set<java.lang.String> collectedItems)  
      void setId​(java.lang.String id)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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: 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
      • getCollectedItems

        public java.util.Set<java.lang.String> getCollectedItems()
      • setCollectedItems

        public void setCollectedItems​(java.util.Set<java.lang.String> collectedItems)