Class InMemoryGettableChangesCollector
- java.lang.Object
-
- de.hybris.platform.outboundsync.job.impl.InMemoryGettableChangesCollector
-
- All Implemented Interfaces:
ChangesCollector,GettableChangesCollector
public class InMemoryGettableChangesCollector extends java.lang.Object implements GettableChangesCollector
AGettableChangesCollectorthat stores the changes in memory.
-
-
Constructor Summary
Constructors Constructor Description InMemoryGettableChangesCollector()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancollect(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.java.util.List<ItemChangeDTO>getChanges()Gets a list of changes
-
-
-
Method Detail
-
getChanges
public java.util.List<ItemChangeDTO> getChanges()
Description copied from interface:GettableChangesCollectorGets a list of changes- Specified by:
getChangesin interfaceGettableChangesCollector- Returns:
- The list of changes or an empty list
-
collect
public boolean collect(ItemChangeDTO change)
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
-
-