Package org.apache.camel.component.feed
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 Summary
Modifier and TypeMethodDescriptionbooleanisValidEntry(E entry) Tests to be used as filtering the feed for only entries of interest, such as only new entries, etc.default voidresume()
-
Method Details
-
isValidEntry
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:
resumein interfaceorg.apache.camel.resume.ResumeAdapter
-