Interface SyncFilter
- All Known Implementing Classes:
ChangeSyncFilter,DeleteSyncFilter
public interface SyncFilter
A filter for changes collected by
StreamingChangesCollector, that passes the change through.
If the change is not applicable for synchronization then the change is filtered out.-
Method Summary
Modifier and TypeMethodDescriptionEvaluates the filtering conditions against the specified item DTO.booleanIf the evaluate method is applicable for the given outbound item DTO
-
Method Details
-
isApplicable
If the evaluate method is applicable for the given outbound item DTO- Parameters:
dto- outbound item DTO- Returns:
- applicable
-
evaluate
Evaluates the filtering conditions against the specified item DTO.- Parameters:
dto- an item DTO to check against the filtering conditions.io- integration object- Returns:
- an
Optionalcontaining thedto, if it satisfies the filtering conditions; or anOptional.empty(), if it does not.
-