Interface ChangesCollector

All Known Subinterfaces:
BatchingCollector, CountingChangesCollector
All Known Implementing Classes:
CsvReportChangesCollector, InMemoryChangesCollector, ItemTypeGroupingCollectorWithBatching, MediaBatchingCollector, StreamingChangesCollector

public interface ChangesCollector
Responsible for collecting the changes.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Collects the given change in a specified way.
    void
    Finishes the collecting changes, depending on implementation, may be used as kind of post processing after finalizing collecting the changes.
  • Method Details

    • collect

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

      void finish()
      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.