Class UpdatedDateFilter

  • All Implemented Interfaces:
    EntryFilter<org.apache.abdera.model.Entry>, org.apache.camel.resume.ResumeAdapter

    @JdkService("adapter-factory")
    public class UpdatedDateFilter
    extends Object
    implements EntryFilter<org.apache.abdera.model.Entry>
    Filters out all entries which occur before the last time of the entry we saw (assuming entries arrive sorted in order).
    • Constructor Detail

      • UpdatedDateFilter

        public UpdatedDateFilter()
      • UpdatedDateFilter

        public UpdatedDateFilter​(Date lastUpdate)
    • Method Detail

      • isValidEntry

        public boolean isValidEntry​(org.apache.abdera.model.Entry entry)
        Description copied from interface: EntryFilter
        Tests to be used as filtering the feed for only entries of interest, such as only new entries, etc.
        Specified by:
        isValidEntry in interface EntryFilter<org.apache.abdera.model.Entry>
        Parameters:
        entry - the given entry to filter
        Returns:
        true to include the entry, false to skip it