java.util.Map<java.lang.Object,java.lang.Object>
, Cache
public final class DebuggingCacheProxy extends java.lang.Object implements Cache
DEFAULT_DEBUG, DEFAULT_NAME, DEFAULT_TYPE, PARAM_DEBUG, PARAM_NAME, PARAM_TYPE
Constructor | Description |
---|---|
DebuggingCacheProxy(Cache cache) |
Construct a DebugCacheProxy for given cache.
|
Modifier and Type | Method | 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<java.util.Map.Entry<java.lang.Object,java.lang.Object>> |
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<java.lang.Object> |
keySet() |
|
java.lang.Object |
put(java.lang.Object key,
java.lang.Object value) |
|
void |
putAll(java.util.Map<? extends java.lang.Object,? extends java.lang.Object> map) |
|
java.lang.Object |
remove(java.lang.Object key) |
|
int |
size() |
|
java.util.Collection<java.lang.Object> |
values() |
public DebuggingCacheProxy(Cache cache)
cache
- The wrapped cache.public void initialize(java.util.Properties params) throws CacheAcquireException
initialize
in interface Cache
params
- Parameters to initialize the cache (e.g. name, capacity).CacheAcquireException
- If cache can not be initialized.public void close()
public java.lang.String getType()
public java.lang.String getName()
public void expire(java.lang.Object key)
public void expireAll()
public int size()
size
in interface java.util.Map<java.lang.Object,java.lang.Object>
public boolean isEmpty()
isEmpty
in interface java.util.Map<java.lang.Object,java.lang.Object>
public boolean containsKey(java.lang.Object key)
containsKey
in interface java.util.Map<java.lang.Object,java.lang.Object>
public boolean containsValue(java.lang.Object value)
containsValue
in interface java.util.Map<java.lang.Object,java.lang.Object>
public java.lang.Object get(java.lang.Object key)
get
in interface java.util.Map<java.lang.Object,java.lang.Object>
public java.lang.Object put(java.lang.Object key, java.lang.Object value)
put
in interface java.util.Map<java.lang.Object,java.lang.Object>
public java.lang.Object remove(java.lang.Object key)
remove
in interface java.util.Map<java.lang.Object,java.lang.Object>
public void putAll(java.util.Map<? extends java.lang.Object,? extends java.lang.Object> map)
putAll
in interface java.util.Map<java.lang.Object,java.lang.Object>
public void clear()
clear
in interface java.util.Map<java.lang.Object,java.lang.Object>
public java.util.Set<java.lang.Object> keySet()
keySet
in interface java.util.Map<java.lang.Object,java.lang.Object>
public java.util.Collection<java.lang.Object> values()
values
in interface java.util.Map<java.lang.Object,java.lang.Object>
public java.util.Set<java.util.Map.Entry<java.lang.Object,java.lang.Object>> entrySet()
entrySet
in interface java.util.Map<java.lang.Object,java.lang.Object>
Intalio Inc. (C) 1999-2008. All rights reserved http://www.intalio.com