Class RssAggregatorCache
- java.lang.Object
-
- org.silverpeas.components.rssaggregator.service.RssAggregatorCache
-
@Singleton public class RssAggregatorCache extends Object
- Author:
- sv
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addChannelToCache(SPChannel spChannel)
Add or replace a content in the cacheSPChannel
getChannelFromCache(SPChannelPK key)
Get a cached content.static RssAggregatorCache
getInstance()
Get an instance of RssAggregatorCacheboolean
isContentNeedToRefresh(SPChannelPK key)
void
removeChannelFromCache(SPChannelPK key)
-
-
-
Method Detail
-
getInstance
public static RssAggregatorCache getInstance()
Get an instance of RssAggregatorCache
-
getChannelFromCache
public SPChannel getChannelFromCache(SPChannelPK key)
Get a cached content. If content is not cached, return null.
-
addChannelToCache
public void addChannelToCache(SPChannel spChannel)
Add or replace a content in the cache
-
removeChannelFromCache
public void removeChannelFromCache(SPChannelPK key)
- Parameters:
key
- of the channel to remove from the cache
-
isContentNeedToRefresh
public boolean isContentNeedToRefresh(SPChannelPK key)
- Returns:
- true if a cached content need to be updated or a content is not cached.
-
-