public final class DebuggingCacheProxy extends java.lang.Object implements Cache
DEFAULT_DEBUG, DEFAULT_NAME, DEFAULT_TYPE, PARAM_DEBUG, PARAM_NAME, PARAM_TYPE| Constructor and Description |
|---|
DebuggingCacheProxy(Cache cache)
Construct a DebugCacheProxy for given cache.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
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() |
public DebuggingCacheProxy(Cache cache)
cache - The wrapped cache.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()Intalio Inc. (C) 1999-2006. All rights reserved http://www.intalio.com