Class LastModifiedLimitFilter

    • Constructor Detail

      • LastModifiedLimitFilter

        public LastModifiedLimitFilter​(long lastModifiedLimitInMillis)
        Constructor.
        Parameters:
        lastModifiedLimitInMillis - accept datasets whose lastModified() time is at least this many msecs in the past
    • Method Detail

      • accept

        public boolean accept​(CrawlableDataset dataset)
        Accept datasets whose last modified date is at least the last modified limit of milliseconds in the past.
        Specified by:
        accept in interface CrawlableDatasetFilter
        Parameters:
        dataset - the dataset to filter
        Returns:
        true if the datasets last modified date is at least lastModifiedLimitInMillis in the past.
      • getLastModifiedLimitInMillis

        public long getLastModifiedLimitInMillis()