Class RssCacheManager


  • public class RssCacheManager
    extends java.lang.Object
    Manager class used to cache RssChannel instance.
    Since:
    jcms-6.0
    Version:
    $Revision: 22221 $
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String REVISION  
    • Constructor Summary

      Constructors 
      Constructor Description
      RssCacheManager()  
    • Constructor Detail

      • RssCacheManager

        public RssCacheManager()
    • Method Detail

      • putRssChannel

        public static RssChannel putRssChannel​(java.lang.String id,
                                               RssChannel rssChannel)
        Cache a RssChannel.
        Parameters:
        id - the unique id of the RssChannel
        rssChannel - the RssChannel instance to cache
        Returns:
        the previous RssChannel instance associated to this id or null if none
        Since:
        jcms-6.0
      • getRssChannel

        public static RssChannel getRssChannel​(java.lang.String id)
        Retrieve a cached RssChannel from its id.
        Parameters:
        id - the id of the RssChannel
        Returns:
        the cached RssChannel or null if it could not be found
        Since:
        jcms-6.0
      • removeRssChannel

        public static RssChannel removeRssChannel​(java.lang.String id)
        Remove a cached RssChannel from its id.
        Parameters:
        id - the id of the RssChannel
        Returns:
        the value associated to this id before removal
        Since:
        jcms-6.0
      • clearAll

        public static void clearAll()
        Clear the cache from all RssChannel.
        Since:
        jcms-6.0