com.silverpeas.rssAgregator.control
Class RssAgregatorCache

java.lang.Object
  extended by com.silverpeas.rssAgregator.control.RssAgregatorCache

public class RssAgregatorCache
extends Object

Since:
17/12/2003
Version:
1.0
Author:
sv

Field Summary
static long REFRESH_RATE
           
 
Method Summary
 void addChannelToCache(SPChannel spChannel)
          Add or replace a content in the cache
 SPChannel getChannelFromCache(SPChannelPK key)
          Get a cached content.
static RssAgregatorCache getInstance()
          Get an instance of RssAgregatorCache
 boolean isContentNeedToRefresh(SPChannelPK key)
           
 void removeChannelFromCache(SPChannelPK key)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

REFRESH_RATE

public static long REFRESH_RATE
Method Detail

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.