Interface FeedFetcherCache

  • All Known Implementing Classes:
    DiskFeedInfoCache, HashMapFeedInfoCache, LinkedHashMapFeedInfoCache

    @Deprecated
    public interface FeedFetcherCache
    Deprecated.
    ROME Fetcher will be dropped in the next major version of ROME (version 2). For more information and some migration hints, please have a look at our detailed explanation.

    An interface to allow caching of feed details. Implementing this allows the com.rometools.fetcher.io.HttpURLFeedFetcher class to enable conditional gets

    Author:
    Nick Lothian
    • Method Detail

      • getFeedInfo

        SyndFeedInfo getFeedInfo​(URL feedUrl)
        Deprecated.
        Get a SyndFeedInfo object from the cache.
        Parameters:
        feedUrl - The url of the feed
        Returns:
        A SyndFeedInfo or null if it is not in the cache
      • setFeedInfo

        void setFeedInfo​(URL feedUrl,
                         SyndFeedInfo syndFeedInfo)
        Deprecated.
        Add a SyndFeedInfo object to the cache
        Parameters:
        feedUrl - The url of the feed
        syndFeedInfo - A SyndFeedInfo for the feed
      • clear

        void clear()
        Deprecated.
        Removes all items from the cache.
      • remove

        SyndFeedInfo remove​(URL feedUrl)
        Deprecated.
        Removes the SyndFeedInfo identified by the url from the cache.
        Returns:
        The removed SyndFeedInfo