Package com.jk.core.cache
Class JKCacheFactory
java.lang.Object
com.jk.core.cache.JKCacheFactory
This class is a factory used for creating
JKCacheManager
objects.- Version:
- 1.0
- Author:
- Dr. Jalal H. Kiswani
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic void
This method clears up the cached data of the available regions in the factory.static JKCacheManager
This method provides a suitableJKCacheManager
instance.static JKCacheManager
getCacheManager
(String region) This method grabs a suitableJKCacheManager
from the given region.This method returns a set view of all the available regions in this factory.
-
Field Details
-
logger
Represents this class logger.
-
-
Constructor Details
-
JKCacheFactory
public JKCacheFactory()
-
-
Method Details
-
getCacheManager
This method provides a suitableJKCacheManager
instance.- Returns:
- an instance of the cache manager
-
getCacheManager
This method grabs a suitableJKCacheManager
from the given region.- Parameters:
region
- Specifies the JKCacheManager region.- Returns:
- instance of JKCacheManager.
-
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.
-