|
||||||||||
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
EhCache¸¦ Áö¿øÇϴ Ŭ·¡½ºÀÌ´Ù. EhCache´Â CacheManager¸¦ »ý¼ºÇÏ´Â °ÍÀ¸·Î ½ÃÀ۵Ǵµ¥, Singleton °ú Instance·Î »ý¼ºÇÒ ¼ö ÀÖ´Ù. GlueEhCacheManager´Â Singleton CacheManger¸¦
»ý¼ºÇÑ´Ù.
±âÁ¸ÀÇ GlueCacheManager¸¦ È®ÀåÇÏ¿© ¸¸µé¾úÀ¸¸ç JCS¿¡¼ resionNameÀº EhCache¿¡¼´Â managerName°ú µ¿ÀÏÇÏ´Ù JCS¿¡¼ CacheHolder¸¦ »ç¿ëÇÑ °Í°ú ´Þ¸® EhCacheManager´Â
CacheManager³»ÀÇ ÀڷᱸÁ¶¸¦ ÀÌ¿ëÇÏ¿© °ü¸®ÇÑ´Ù.
bean property : ¾øÀ½ [sample] »ç¿ë ¿¹ehcache.xml ÆÄÀÏ ³»¿ë
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½¬ Å°¿¡ ÇØ´çÇÏ´Â ¿ÀºêÁ§Æ®¸¦ ¸®ÅÏ. |
|
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½¬ ¿µ¿ª¿¡ ÁÖ¾îÁø Å°¸¦ »ç¿ëÇÏ¿© ¿ÀºêÁ§Æ®¸¦ »èÁ¦ÇÔ |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public GlueEhCacheManager()
Method Detail |
---|
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 |