Package de.hybris.deltadetection.impl
Class InMemoryChangesCollector
- java.lang.Object
-
- de.hybris.deltadetection.impl.InMemoryChangesCollector
-
- All Implemented Interfaces:
ChangesCollector
public class InMemoryChangesCollector extends java.lang.Object implements ChangesCollector
Collects the changes in memory and allows reading it
-
-
Constructor Summary
Constructors Constructor Description InMemoryChangesCollector()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
clearChanges()
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.List<ItemChangeDTO>
getChanges()
-
-
-
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 interfaceChangesCollector
- Parameters:
change
- change to be collected- Returns:
true
, if the collecting process should continue,false
otherwise
-
getChanges
public java.util.List<ItemChangeDTO> getChanges()
-
clearChanges
public void clearChanges()
-
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 interfaceChangesCollector
-
-