Class HashMapFeedInfoCache

    • Constructor Detail

      • HashMapFeedInfoCache

        public HashMapFeedInfoCache()
        Deprecated.

        Constructor for HashMapFeedInfoCache

        Only use this if you want multiple instances of the cache. Usually getInstance() is more appropriate.

    • Method Detail

      • getInstance

        public static FeedFetcherCache getInstance()
        Deprecated.
        Get the global instance of the cache
        Returns:
        an implementation of FeedFetcherCache
      • getFeedInfo

        public SyndFeedInfo getFeedInfo​(URL feedUrl)
        Deprecated.
        Description copied from interface: FeedFetcherCache
        Get a SyndFeedInfo object from the cache.
        Specified by:
        getFeedInfo in interface FeedFetcherCache
        Parameters:
        feedUrl - The url of the feed
        Returns:
        A SyndFeedInfo or null if it is not in the cache
        See Also:
        extensions.io.FeedFetcherCache#getFeedInfo(java.net.URL)
      • setFeedInfo

        public void setFeedInfo​(URL feedUrl,
                                SyndFeedInfo syndFeedInfo)
        Deprecated.
        Description copied from interface: FeedFetcherCache
        Add a SyndFeedInfo object to the cache
        Specified by:
        setFeedInfo in interface FeedFetcherCache
        Parameters:
        feedUrl - The url of the feed
        syndFeedInfo - A SyndFeedInfo for the feed
        See Also:
        extensions.io.FeedFetcherCache#setFeedInfo(java.net.URL, extensions.io.SyndFeedInfo)
      • setInfoCache

        protected final void setInfoCache​(Map<String,​SyndFeedInfo> map)
        Deprecated.
        The API of this class indicates that map must thread safe. In other words, be sure to wrap it in a synchronized map unless you know what you are doing.
        Parameters:
        map - the map to use as the info cache.
      • clear

        public void clear()
        Deprecated.
        Description copied from interface: FeedFetcherCache
        Removes all items from the cache.
        Specified by:
        clear in interface FeedFetcherCache
        See Also:
        com.rometools.rome.fetcher.impl.FeedFetcherCache#clear()
      • remove

        public SyndFeedInfo remove​(URL url)
        Deprecated.
        Description copied from interface: FeedFetcherCache
        Removes the SyndFeedInfo identified by the url from the cache.
        Specified by:
        remove in interface FeedFetcherCache
        Returns:
        The removed SyndFeedInfo
        See Also:
        com.rometools.rome.fetcher.impl.FeedFetcherCache#remove(java.net.URL)