public class LastModifiedLimitFilter extends java.lang.Object implements CrawlableDatasetFilter
Constructor and Description |
---|
LastModifiedLimitFilter(long lastModifiedLimitInMillis)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
accept(CrawlableDataset dataset)
Accept datasets whose last modified date is at least the
last modified limit of milliseconds in the past.
|
java.lang.Object |
getConfigObject()
Return the configuration object.
|
long |
getLastModifiedLimitInMillis() |
public LastModifiedLimitFilter(long lastModifiedLimitInMillis)
lastModifiedLimitInMillis
- accept datasets whose lastModified() time is at least this many msecs in the pastpublic boolean accept(CrawlableDataset dataset)
accept
in interface CrawlableDatasetFilter
dataset
- the dataset to filterpublic java.lang.Object getConfigObject()
CrawlableDatasetFilter
getConfigObject
in interface CrawlableDatasetFilter
public long getLastModifiedLimitInMillis()