Package com.rometools.fetcher.impl
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.HttpURLFeedFetcherclass to enable conditional gets- Author:
- Nick Lothian
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description voidclear()Deprecated.Removes all items from the cache.SyndFeedInfogetFeedInfo(URL feedUrl)Deprecated.Get a SyndFeedInfo object from the cache.SyndFeedInforemove(URL feedUrl)Deprecated.Removes the SyndFeedInfo identified by the url from the cache.voidsetFeedInfo(URL feedUrl, SyndFeedInfo syndFeedInfo)Deprecated.Add a SyndFeedInfo object to the cache
-
-
-
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 feedsyndFeedInfo- 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
-
-