|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.poscoict.glueframework.cache.ehcache.GlueEhCacheManager
public class GlueEhCacheManager
CacheManager ±¸Çöü. EhCache¸¦ Áö¿øÇϴ Ŭ·¡½ºÀÌ´Ù. EhCache´Â CacheManager¸¦ »ý¼ºÇÏ´Â °ÍÀ¸·Î ½ÃÀ۵Ǵµ¥, Singleton °ú Instance·Î »ý¼ºÇÒ ¼ö ÀÖ´Ù. GlueEhCacheManager´Â
Singleton CacheManger¸¦ »ý¼ºÇÑ´Ù.
±âÁ¸ÀÇ GlueCacheManager¸¦ È®ÀåÇÏ¿© ¸¸µé¾úÀ¸¸ç JCS¿¡¼ resionNameÀº EhCache¿¡¼´Â managerName°ú µ¿ÀÏÇÏ´Ù JCS¿¡¼ CacheHolder¸¦ »ç¿ëÇÑ °Í°ú ´Þ¸® EhCacheManager´Â
CacheManager³»ÀÇ ÀڷᱸÁ¶¸¦ ÀÌ¿ëÇÏ¿© °ü¸®ÇÑ´Ù.
Bean Property - location : (¼±ÅÃ) ehcache.xml ÀÇ °æ·Î¸¦ ÁöÁ¤. classpath »óÀÇ À§Ä¡ ¶Ç´Â ±×¿ÜÀÇ À§Ä¡¸¦ ÁöÁ¤ÇÒ ¼ö ÀÖÀ½ ¿¹Á¦»ç¿ë ¿¹# 1 »ç¿ë ¿¹# 2 »ç¿ë ¿¹# 3 »ç¿ë ¿¹# 4 Âü°í : ehcache.xml ÆÄÀÏ ³»¿ë
Field Summary | |
---|---|
protected org.slf4j.Logger |
logger
logger |
Constructor Summary | |
---|---|
GlueEhCacheManager()
|
Method Summary | ||
---|---|---|
void |
afterPropertiesSet()
|
|
void |
clear()
µðÆúÆ® ij½¬ ¿µ¿ªÀÇ ¸ðµç ¿ÀºêÁ§Æ®¸¦ »èÁ¦ÇÔ |
|
void |
clear(String name)
ij½¬ ¿µ¿ªÀÇ ¸ðµç ¿ÀºêÁ§Æ®¸¦ »èÁ¦ÇÔ |
|
void |
destroy()
|
|
Object |
getCacheObject(Object cacheKey)
µðÆúµå ij½¬ ¿µ¿ª¿¡¼ ij½¬ Å°¿¡ ÇØ´çÇÏ´Â ¿ÀºêÁ§Æ®¸¦ ¸®ÅÏ. |
|
|
getCacheObject(Object cacheKey,
Class<T> valueClass)
µðÆúµå ij½¬ ¿µ¿ª¿¡¼ ij½¬ Å°¿¡ ÇØ´çÇÏ´Â ¿ÀºêÁ§Æ®¸¦ ¸®ÅÏ. |
|
Object |
getCacheObject(Object cacheKey,
String name)
ÁÖ¾îÁø ij½¬ ¿µ¿ª¿¡¼ ij½¬ Å°¿¡ ÇØ´çÇÏ´Â ¿ÀºêÁ§Æ®¸¦ ¸®ÅÏ. |
|
|
getCacheObject(Object cacheKey,
String name,
Class<T> valueClass)
ÁÖ¾îÁø ij½¬ ¿µ¿ª¿¡¼ ij½¬ Å°¿¡ ÇØ´çÇÏ´Â ¿ÀºêÁ§Æ®¸¦ ¸®ÅÏ. |
|
Object |
getCacheObject(Object cacheKey,
String name,
GlueCacheLoader loader)
ÁÖ¾îÁø ij½¬ ¿µ¿ª¿¡¼ ij½¬ Å°¿¡ ÇØ´çÇÏ´Â ¿ÀºêÁ§Æ®¸¦ ¸®ÅÏ. |
|
|
getCacheObject(Object cacheKey,
String name,
GlueCacheLoader loader,
Class<T> valueClass)
ÁÖ¾îÁø ij½¬ ¿µ¿ª¿¡¼ ij½¬ Å°¿¡ ÇØ´çÇÏ´Â ¿ÀºêÁ§Æ®¸¦ ¸®ÅÏ. |
|
org.springframework.core.io.Resource |
getLocation()
getter method for DI. |
|
boolean |
isPresent(Object cacheKey)
µðÆúÆ® ij½¬ ¿µ¿ª¿¡ ÁÖ¾îÁø Å°¸¦ »ç¿ëÇÏ¿© ¿ÀºêÁ§Æ®ÀÇ Á¸Àç¿©ºÎ¸¦ È®ÀÎ |
|
boolean |
isPresent(Object cacheKey,
String name)
ij½¬ ¿µ¿ª¿¡ ÁÖ¾îÁø Å°¸¦ »ç¿ëÇÏ¿© ¿ÀºêÁ§Æ®ÀÇ Á¸Àç¿©ºÎ¸¦ È®ÀÎ |
|
void |
putCacheObject(Object cacheKey,
Object cacheObject)
µðÆúÆ® ij½¬ ¿µ¿ª¿¡ ÁÖ¾îÁø Å°¸¦ »ç¿ëÇÏ¿© ¿ÀºêÁ§Æ®¸¦ ij½³ ÇÔ |
|
void |
putCacheObject(Object cacheKey,
Object cacheObject,
String name)
ij½¬ ¿µ¿ª¿¡ ÁÖ¾îÁø Å°¸¦ »ç¿ëÇÏ¿© ¿ÀºêÁ§Æ®¸¦ ij½³ ÇÔ |
|
void |
removeCacheObject(Object cacheKey)
µðÆúÆ® ij½¬ ¿µ¿ª¿¡ ÁÖ¾îÁø Å°¸¦ »ç¿ëÇÏ¿© ¿ÀºêÁ§Æ®¸¦ »èÁ¦ÇÔ |
|
void |
removeCacheObject(Object cacheKey,
String name)
ij½¬ ¿µ¿ª¿¡ ÁÖ¾îÁø Å°¸¦ »ç¿ëÇÏ¿© ¿ÀºêÁ§Æ®¸¦ »èÁ¦ÇÔ |
|
void |
setLocation(org.springframework.core.io.Resource location)
setter method for DI. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected final org.slf4j.Logger logger
Constructor Detail |
---|
public GlueEhCacheManager()
Method Detail |
---|
public org.springframework.core.io.Resource getLocation()
public void setLocation(org.springframework.core.io.Resource location)
location
- public Object getCacheObject(Object cacheKey)
GlueCacheManager
getCacheObject
in interface GlueCacheManager
cacheKey
- ij½¬ Å°
public Object getCacheObject(Object cacheKey, String name)
getCacheObject
in interface GlueCacheManager
cacheKey
- ij½¬ Å°name
- ij½¬ ¿µ¿ª¸í : cache ÀÇ name(ex. _default-region)
public <T> T getCacheObject(Object cacheKey, Class<T> valueClass)
GlueCacheManager
getCacheObject
in interface GlueCacheManager
cacheKey
- ij½¬ Å°valueClass
- ¿ÀºêÁ§Æ® Ŭ·¡½º
public <T> T getCacheObject(Object cacheKey, String name, Class<T> valueClass)
GlueCacheManager
getCacheObject
in interface GlueCacheManager
cacheKey
- ij½¬ Å°name
- ij½¬ ¿µ¿ª¸ívalueClass
- ¿ÀºêÁ§Æ® Ŭ·¡½º
public <T> T getCacheObject(Object cacheKey, String name, GlueCacheLoader loader, Class<T> valueClass)
GlueCacheManager
getCacheObject
in interface GlueCacheManager
cacheKey
- ij½¬ Å°name
- ij½¬ ¿µ¿ª¸íloader
- ij½¬ ·Î´õvalueClass
- ¿ÀºêÁ§Æ® Ŭ·¡½º
public Object getCacheObject(Object cacheKey, String name, GlueCacheLoader loader)
GlueCacheManager
getCacheObject
in interface GlueCacheManager
cacheKey
- ij½¬ Å°name
- ij½¬ ¿µ¿ª¸íloader
- ij½¬ ·Î´õ
public void putCacheObject(Object cacheKey, Object cacheObject)
GlueCacheManager
putCacheObject
in interface GlueCacheManager
cacheKey
- ij½¬ Å°cacheObject
- ij½¬ ´ë»ó ¿ÀºêÁ§Æ®public void putCacheObject(Object cacheKey, Object cacheObject, String name)
GlueCacheManager
putCacheObject
in interface GlueCacheManager
cacheKey
- ij½¬ Å°cacheObject
- ij½¬ ´ë»ó ¿ÀºêÁ§Æ®name
- ij½¬ ¿µ¿ª¸ípublic boolean isPresent(Object cacheKey)
GlueCacheManager
isPresent
in interface GlueCacheManager
cacheKey
- ij½¬ Å°
public boolean isPresent(Object cacheKey, String name)
GlueCacheManager
isPresent
in interface GlueCacheManager
cacheKey
- ij½¬ Å°name
- ij½¬ ¿µ¿ª¸í
public void removeCacheObject(Object cacheKey)
GlueCacheManager
removeCacheObject
in interface GlueCacheManager
cacheKey
- ij½¬ Å°public void removeCacheObject(Object cacheKey, String name)
GlueCacheManager
removeCacheObject
in interface GlueCacheManager
cacheKey
- ij½¬ Å°name
- ij½¬ ¿µ¿ª¸ípublic void clear()
GlueCacheManager
clear
in interface GlueCacheManager
public void clear(String name)
GlueCacheManager
clear
in interface GlueCacheManager
name
- ij½¬ ¿µ¿ª¸ípublic void afterPropertiesSet() throws Exception
afterPropertiesSet
in interface org.springframework.beans.factory.InitializingBean
Exception
public void destroy() throws Exception
destroy
in interface org.springframework.beans.factory.DisposableBean
Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |