Package com.jk.core.cache.simple
Class JKAbstractCacheManager
java.lang.Object
com.jk.core.cache.simple.JKAbstractCacheManager
- All Implemented Interfaces:
JKCacheManager
- Direct Known Subclasses:
JKDefaultCacheManager
,JKTimedAndSizeCacheManager
The Class JKAbstractCacheManager.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
Cache.<T> void
Cache.void
clear()
Clear.void
Clear.<T> T
Gets the.getCachableMap
(Class<?> clas) Gets the cachable map.boolean
Checks if is allow nullable.boolean
isAvailable
(Object key, Class<?> clas) Checks if is available.void
Removes the.void
setAllowNullable
(boolean allowNullable) Sets the allow nullable.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.jk.core.cache.JKCacheManager
get
-
Field Details
-
logger
The logger.
-
-
Constructor Details
-
JKAbstractCacheManager
public JKAbstractCacheManager()
-
-
Method Details
-
cache
Cache.- Specified by:
cache
in interfaceJKCacheManager
- Parameters:
key
- the keyobject
- the object
-
cache
Cache.- Specified by:
cache
in interfaceJKCacheManager
- Type Parameters:
T
- the generic type- Parameters:
key
- the keyobject
- the objectclas
- the clas
-
clear
Clear.- Specified by:
clear
in interfaceJKCacheManager
- Parameters:
clas
- the clas
-
get
Gets the.- Specified by:
get
in interfaceJKCacheManager
- Type Parameters:
T
- the generic type- Parameters:
key
- the keyclas
- the clas- Returns:
- the t
-
getCachableMap
Gets the cachable map.- Specified by:
getCachableMap
in interfaceJKCacheManager
- Parameters:
clas
- the clas- Returns:
- the cachable map
-
createCacheMap
-
isAllowNullable
public boolean isAllowNullable()Checks if is allow nullable.- Returns:
- true, if is allow nullable
-
isAvailable
Checks if is available.- Specified by:
isAvailable
in interfaceJKCacheManager
- Parameters:
key
- the keyclas
- the clas- Returns:
- true, if is available
-
remove
Removes the.- Specified by:
remove
in interfaceJKCacheManager
- Parameters:
key
- the keyclas
- the clas
-
setAllowNullable
public void setAllowNullable(boolean allowNullable) Sets the allow nullable.- Parameters:
allowNullable
- the new allow nullable
-
clear
public void clear()Clear.- Specified by:
clear
in interfaceJKCacheManager
-