Class JKCacheFactory

java.lang.Object
com.jk.core.cache.JKCacheFactory

public class JKCacheFactory extends Object
This class is a factory used for creating JKCacheManager objects.
Version:
1.0
Author:
Dr. Jalal H. Kiswani
  • Field Details

    • logger

      protected static JKLogger logger
      Represents this class logger.
  • Constructor Details

    • JKCacheFactory

      public JKCacheFactory()
  • Method Details

    • getCacheManager

      public static JKCacheManager getCacheManager()
      This method provides a suitable JKCacheManager instance.
      Returns:
      an instance of the cache manager
    • getCacheManager

      public static JKCacheManager getCacheManager(String region)
      This method grabs a suitable JKCacheManager from the given region.
      Parameters:
      region - Specifies the JKCacheManager region.
      Returns:
      instance of JKCacheManager.
    • getRegions

      public static Set<String> getRegions()
      This method returns a set view of all the available regions in this factory.
      Returns:
      a set view of all the available regions in this factory.
    • clearAllRegions

      public static void clearAllRegions()
      This method clears up the cached data of the available regions in the factory.