Package com.soffid.iam.spring
Class DummyCache<K,V>
- java.lang.Object
-
- com.soffid.iam.spring.DummyCache<K,V>
-
- All Implemented Interfaces:
org.apache.commons.jcs.access.behavior.ICacheAccess<K,V>,org.apache.commons.jcs.access.behavior.ICacheAccessManagement
public class DummyCache<K,V> extends Object implements org.apache.commons.jcs.access.behavior.ICacheAccess<K,V>
-
-
Constructor Summary
Constructors Constructor Description DummyCache()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclear()voiddispose()intfreeMemoryElements(int numberToFree)Vget(Object name)org.apache.commons.jcs.engine.behavior.ICompositeCacheAttributesgetCacheAttributes()org.apache.commons.jcs.engine.behavior.ICacheElement<K,V>getCacheElement(Object name)Map<K,org.apache.commons.jcs.engine.behavior.ICacheElement<K,V>>getCacheElements(Set<K> names)org.apache.commons.jcs.engine.behavior.IElementAttributesgetDefaultElementAttributes()org.apache.commons.jcs.engine.behavior.IElementAttributesgetElementAttributes(Object name)Map<K,V>getMatching(String pattern)Map<K,org.apache.commons.jcs.engine.behavior.ICacheElement<K,V>>getMatchingCacheElements(String pattern)org.apache.commons.jcs.engine.stats.behavior.ICacheStatsgetStatistics()StringgetStats()voidput(Object name, Object obj)voidput(Object name, Object obj, org.apache.commons.jcs.engine.behavior.IElementAttributes attr)voidputSafe(Object name, Object obj)voidremove(Object name)voidresetElementAttributes(Object name, org.apache.commons.jcs.engine.behavior.IElementAttributes attributes)voidsetCacheAttributes(org.apache.commons.jcs.engine.behavior.ICompositeCacheAttributes cattr)voidsetDefaultElementAttributes(org.apache.commons.jcs.engine.behavior.IElementAttributes attr)
-
-
-
Method Detail
-
dispose
public void dispose()
- Specified by:
disposein interfaceorg.apache.commons.jcs.access.behavior.ICacheAccessManagement
-
clear
public void clear() throws org.apache.commons.jcs.access.exception.CacheException- Specified by:
clearin interfaceorg.apache.commons.jcs.access.behavior.ICacheAccessManagement- Throws:
org.apache.commons.jcs.access.exception.CacheException
-
getDefaultElementAttributes
public org.apache.commons.jcs.engine.behavior.IElementAttributes getDefaultElementAttributes() throws org.apache.commons.jcs.access.exception.CacheException- Specified by:
getDefaultElementAttributesin interfaceorg.apache.commons.jcs.access.behavior.ICacheAccessManagement- Throws:
org.apache.commons.jcs.access.exception.CacheException
-
setDefaultElementAttributes
public void setDefaultElementAttributes(org.apache.commons.jcs.engine.behavior.IElementAttributes attr) throws org.apache.commons.jcs.access.exception.CacheException- Specified by:
setDefaultElementAttributesin interfaceorg.apache.commons.jcs.access.behavior.ICacheAccessManagement- Throws:
org.apache.commons.jcs.access.exception.CacheException
-
getCacheAttributes
public org.apache.commons.jcs.engine.behavior.ICompositeCacheAttributes getCacheAttributes()
- Specified by:
getCacheAttributesin interfaceorg.apache.commons.jcs.access.behavior.ICacheAccessManagement
-
setCacheAttributes
public void setCacheAttributes(org.apache.commons.jcs.engine.behavior.ICompositeCacheAttributes cattr)
- Specified by:
setCacheAttributesin interfaceorg.apache.commons.jcs.access.behavior.ICacheAccessManagement
-
freeMemoryElements
public int freeMemoryElements(int numberToFree) throws org.apache.commons.jcs.access.exception.CacheException- Specified by:
freeMemoryElementsin interfaceorg.apache.commons.jcs.access.behavior.ICacheAccessManagement- Throws:
org.apache.commons.jcs.access.exception.CacheException
-
getStatistics
public org.apache.commons.jcs.engine.stats.behavior.ICacheStats getStatistics()
- Specified by:
getStatisticsin interfaceorg.apache.commons.jcs.access.behavior.ICacheAccessManagement
-
getStats
public String getStats()
- Specified by:
getStatsin interfaceorg.apache.commons.jcs.access.behavior.ICacheAccessManagement
-
putSafe
public void putSafe(Object name, Object obj) throws org.apache.commons.jcs.access.exception.CacheException
-
put
public void put(Object name, Object obj) throws org.apache.commons.jcs.access.exception.CacheException
-
put
public void put(Object name, Object obj, org.apache.commons.jcs.engine.behavior.IElementAttributes attr) throws org.apache.commons.jcs.access.exception.CacheException
-
getCacheElement
public org.apache.commons.jcs.engine.behavior.ICacheElement<K,V> getCacheElement(Object name)
-
getCacheElements
public Map<K,org.apache.commons.jcs.engine.behavior.ICacheElement<K,V>> getCacheElements(Set<K> names)
-
getMatchingCacheElements
public Map<K,org.apache.commons.jcs.engine.behavior.ICacheElement<K,V>> getMatchingCacheElements(String pattern)
-
remove
public void remove(Object name) throws org.apache.commons.jcs.access.exception.CacheException
-
resetElementAttributes
public void resetElementAttributes(Object name, org.apache.commons.jcs.engine.behavior.IElementAttributes attributes) throws org.apache.commons.jcs.access.exception.CacheException
-
getElementAttributes
public org.apache.commons.jcs.engine.behavior.IElementAttributes getElementAttributes(Object name) throws org.apache.commons.jcs.access.exception.CacheException
-
-