Package com.rometools.fetcher.impl
Class DiskFeedInfoCache
- java.lang.Object
-
- com.rometools.fetcher.impl.DiskFeedInfoCache
-
- All Implemented Interfaces:
FeedFetcherCache
@Deprecated public class DiskFeedInfoCache extends Object implements 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.Disk based feed cache.
-
-
Constructor Summary
Constructors Constructor Description DiskFeedInfoCache(String cachePath)Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description voidclear()Deprecated.Removes all items from the cache.SyndFeedInfogetFeedInfo(URL url)Deprecated.Get a SyndFeedInfo object from the cache.SyndFeedInforemove(URL url)Deprecated.Removes the SyndFeedInfo identified by the url from the cache.voidsetFeedInfo(URL url, SyndFeedInfo feedInfo)Deprecated.Add a SyndFeedInfo object to the cache
-
-
-
Field Detail
-
cachePath
protected String cachePath
Deprecated.
-
-
Constructor Detail
-
DiskFeedInfoCache
public DiskFeedInfoCache(String cachePath)
Deprecated.
-
-
Method Detail
-
getFeedInfo
public SyndFeedInfo getFeedInfo(URL url)
Deprecated.Description copied from interface:FeedFetcherCacheGet a SyndFeedInfo object from the cache.- Specified by:
getFeedInfoin interfaceFeedFetcherCache- Parameters:
url- The url of the feed- Returns:
- A SyndFeedInfo or null if it is not in the cache
-
setFeedInfo
public void setFeedInfo(URL url, SyndFeedInfo feedInfo)
Deprecated.Description copied from interface:FeedFetcherCacheAdd a SyndFeedInfo object to the cache- Specified by:
setFeedInfoin interfaceFeedFetcherCache- Parameters:
url- The url of the feedfeedInfo- A SyndFeedInfo for the feed
-
clear
public void clear()
Deprecated.Description copied from interface:FeedFetcherCacheRemoves all items from the cache.- Specified by:
clearin interfaceFeedFetcherCache
-
remove
public SyndFeedInfo remove(URL url)
Deprecated.Description copied from interface:FeedFetcherCacheRemoves the SyndFeedInfo identified by the url from the cache.- Specified by:
removein interfaceFeedFetcherCache- Returns:
- The removed SyndFeedInfo
-
-