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 Details

    • isApplicable

      boolean isApplicable(OutboundItemDTO dto)
      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 Optional containing the dto, if it satisfies the filtering conditions; or an Optional.empty(), if it does not.