Class UpdatedDateFilter

  • All Implemented Interfaces:
    org.apache.camel.component.feed.EntryFilter<com.rometools.rome.feed.synd.SyndEntry>, org.apache.camel.resume.ResumeAdapter

    public class UpdatedDateFilter
    extends Object
    implements org.apache.camel.component.feed.EntryFilter<com.rometools.rome.feed.synd.SyndEntry>
    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

      • getLastUpdate

        public Date getLastUpdate()
      • isValidEntry

        public boolean isValidEntry​(com.rometools.rome.feed.synd.SyndEntry entry)
        Specified by:
        isValidEntry in interface org.apache.camel.component.feed.EntryFilter<com.rometools.rome.feed.synd.SyndEntry>