Interface EntryFilter<E>

  • Type Parameters:
    E - entry type
    All Superinterfaces:
    org.apache.camel.resume.ResumeAdapter
    All Known Implementing Classes:
    UpdatedDateFilter

    public interface EntryFilter<E>
    extends org.apache.camel.resume.ResumeAdapter
    Filter used by the FeedEntryPollingConsumer to filter entries from the feed.
    • Field Summary

      • Fields inherited from interface org.apache.camel.resume.ResumeAdapter

        RESUME_ADAPTER_FACTORY
    • Method Detail

      • isValidEntry

        boolean isValidEntry​(E entry)
        Tests to be used as filtering the feed for only entries of interest, such as only new entries, etc.
        Parameters:
        entry - the given entry to filter
        Returns:
        true to include the entry, false to skip it
      • resume

        default void resume()
        Specified by:
        resume in interface org.apache.camel.resume.ResumeAdapter