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(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() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
compute, computeIfAbsent, computeIfPresent, equals, forEach, getOrDefault, hashCode, merge, putIfAbsent, remove, replace, replace, replaceAll
public DebuggingCacheProxy(Cache cache)
cache
- The wrapped cache.public void initialize(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 String getType()
public String getName()
public void expire(Object key)
public void expireAll()
public boolean containsKey(Object key)
containsKey
in interface Map<Object,Object>
public boolean containsValue(Object value)
containsValue
in interface Map<Object,Object>
Copyright © 2016. All rights reserved.