com.silverpeas.rssAgregator.control
Class RssAgregatorCache
java.lang.Object
com.silverpeas.rssAgregator.control.RssAgregatorCache
public class RssAgregatorCache
- extends Object
- Since:
- 17/12/2003
- Version:
- 1.0
- Author:
- sv
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
REFRESH_RATE
public static long REFRESH_RATE
getInstance
public static final RssAgregatorCache getInstance()
- Get an instance of RssAgregatorCache
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.
Copyright © 2016 Silverpeas. All Rights Reserved.