|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.castor.cache.DebuggingCacheProxy
A debugging cache proxy.
| Nested Class Summary |
| Nested classes inherited from class java.util.Map |
java.util.Map.Entry |
| Field Summary |
| Fields inherited from interface org.castor.cache.Cache |
DEFAULT_DEBUG, DEFAULT_NAME, DEFAULT_TYPE, PARAM_DEBUG, PARAM_NAME, PARAM_TYPE |
| Constructor Summary | |
DebuggingCacheProxy(Cache cache)
Construct a DebugCacheProxy for given cache. |
|
| Method Summary | |
void |
clear()
|
void |
close()
Life-cycle method to allow custom resource cleanup for a cache implementation. |
boolean |
containsKey(java.lang.Object key)
|
boolean |
containsValue(java.lang.Object value)
|
java.util.Set |
entrySet()
|
void |
expire(java.lang.Object key)
Remove the mapping identified by key from the cache. |
void |
expireAll()
Removes all mappings from the cache. |
java.lang.Object |
get(java.lang.Object key)
|
java.lang.String |
getName()
Get virtual name of this cache. Castor sets the cache name to the class name of the objects stored in the cache. |
java.lang.String |
getType()
Indicates the type of this cache. |
void |
initialize(java.util.Properties params)
Lyfe-cycle method to allow custom initialization of cache implementations. |
boolean |
isEmpty()
|
java.util.Set |
keySet()
|
java.lang.Object |
put(java.lang.Object key,
java.lang.Object value)
|
void |
putAll(java.util.Map map)
|
java.lang.Object |
remove(java.lang.Object key)
|
int |
size()
|
java.util.Collection |
values()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface java.util.Map |
equals, hashCode |
| Constructor Detail |
public DebuggingCacheProxy(Cache cache)
cache - The wrapped cache.| Method Detail |
public void initialize(java.util.Properties params)
throws CacheAcquireException
initialize in interface Cacheparams - Parameters to initialize the cache (e.g. name, capacity).
CacheAcquireException - If cache can not be initialized.Cache.initialize(java.util.Properties)public void close()
close in interface CacheCache.close()public java.lang.String getType()
getType in interface CacheCache.getType()public java.lang.String getName()
getName in interface CacheCache.getName()public void expire(java.lang.Object key)
expire in interface Cachekey - the key that needs to be removed.Cache.expire(java.lang.Object)public void expireAll()
expireAll in interface CacheCache.expireAll()public int size()
size in interface java.util.MapMap.size()public boolean isEmpty()
isEmpty in interface java.util.MapMap.isEmpty()public boolean containsKey(java.lang.Object key)
containsKey in interface java.util.MapMap.containsKey(java.lang.Object)public boolean containsValue(java.lang.Object value)
containsValue in interface java.util.MapMap.containsValue(java.lang.Object)public java.lang.Object get(java.lang.Object key)
get in interface java.util.MapMap.get(java.lang.Object)
public java.lang.Object put(java.lang.Object key,
java.lang.Object value)
put in interface java.util.MapMap.put(java.lang.Object, java.lang.Object)public java.lang.Object remove(java.lang.Object key)
remove in interface java.util.MapMap.remove(java.lang.Object)public void putAll(java.util.Map map)
putAll in interface java.util.MapMap.putAll(java.util.Map)public void clear()
clear in interface java.util.MapMap.clear()public java.util.Set keySet()
keySet in interface java.util.MapMap.keySet()public java.util.Collection values()
values in interface java.util.MapMap.values()public java.util.Set entrySet()
entrySet in interface java.util.MapMap.entrySet()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||