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 void
clear()
void
dispose()
int
freeMemoryElements(int numberToFree)
V
get(Object name)
org.apache.commons.jcs.engine.behavior.ICompositeCacheAttributes
getCacheAttributes()
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.IElementAttributes
getDefaultElementAttributes()
org.apache.commons.jcs.engine.behavior.IElementAttributes
getElementAttributes(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.ICacheStats
getStatistics()
String
getStats()
void
put(Object name, Object obj)
void
put(Object name, Object obj, org.apache.commons.jcs.engine.behavior.IElementAttributes attr)
void
putSafe(Object name, Object obj)
void
remove(Object name)
void
resetElementAttributes(Object name, org.apache.commons.jcs.engine.behavior.IElementAttributes attributes)
void
setCacheAttributes(org.apache.commons.jcs.engine.behavior.ICompositeCacheAttributes cattr)
void
setDefaultElementAttributes(org.apache.commons.jcs.engine.behavior.IElementAttributes attr)
-
-
-
Method Detail
-
dispose
public void dispose()
- Specified by:
dispose
in interfaceorg.apache.commons.jcs.access.behavior.ICacheAccessManagement
-
clear
public void clear() throws org.apache.commons.jcs.access.exception.CacheException
- Specified by:
clear
in 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:
getDefaultElementAttributes
in 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:
setDefaultElementAttributes
in 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:
getCacheAttributes
in interfaceorg.apache.commons.jcs.access.behavior.ICacheAccessManagement
-
setCacheAttributes
public void setCacheAttributes(org.apache.commons.jcs.engine.behavior.ICompositeCacheAttributes cattr)
- Specified by:
setCacheAttributes
in interfaceorg.apache.commons.jcs.access.behavior.ICacheAccessManagement
-
freeMemoryElements
public int freeMemoryElements(int numberToFree) throws org.apache.commons.jcs.access.exception.CacheException
- Specified by:
freeMemoryElements
in 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:
getStatistics
in interfaceorg.apache.commons.jcs.access.behavior.ICacheAccessManagement
-
getStats
public String getStats()
- Specified by:
getStats
in 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
-
-