|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.castor.cache.DebuggingCacheProxy
public final class DebuggingCacheProxy
A debugging cache proxy.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface java.util.Map |
|---|
Map.Entry<K,V> |
| 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(Object key)
|
boolean |
containsValue(Object value)
|
Set<Map.Entry<Object,Object>> |
entrySet()
|
void |
expire(Object key)
Remove the mapping identified by key from the cache. |
void |
expireAll()
Removes all mappings from the cache. |
Object |
get(Object key)
|
String |
getName()
Get virtual name of this cache. |
String |
getType()
Indicates the type of this cache. |
void |
initialize(Properties params)
Lyfe-cycle method to allow custom initialization of cache implementations. |
boolean |
isEmpty()
|
Set<Object> |
keySet()
|
Object |
put(Object key,
Object value)
|
void |
putAll(Map<? extends Object,? extends Object> map)
|
Object |
remove(Object key)
|
int |
size()
|
Collection<Object> |
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(Properties params)
throws CacheAcquireException
initialize in interface Cacheparams - Parameters to initialize the cache (e.g. name, capacity).
CacheAcquireException - If cache can not be initialized.public void close()
close in interface Cachepublic String getType()
getType in interface Cachepublic String getName()
getName in interface Cachepublic void expire(Object key)
expire in interface Cachekey - the key that needs to be removed.public void expireAll()
expireAll in interface Cachepublic int size()
size in interface Map<Object,Object>public boolean isEmpty()
isEmpty in interface Map<Object,Object>public boolean containsKey(Object key)
containsKey in interface Map<Object,Object>public boolean containsValue(Object value)
containsValue in interface Map<Object,Object>public Object get(Object key)
get in interface Map<Object,Object>
public Object put(Object key,
Object value)
put in interface Map<Object,Object>public Object remove(Object key)
remove in interface Map<Object,Object>public void putAll(Map<? extends Object,? extends Object> map)
putAll in interface Map<Object,Object>public void clear()
clear in interface Map<Object,Object>public Set<Object> keySet()
keySet in interface Map<Object,Object>public Collection<Object> values()
values in interface Map<Object,Object>public Set<Map.Entry<Object,Object>> entrySet()
entrySet in interface Map<Object,Object>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||