|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.atlassian.cache.ehcache.DelegatingCache<K,V>
public class DelegatingCache<K,V>
A Cache that delegates to EhCache.
Constructor Summary | |
---|---|
DelegatingCache(net.sf.ehcache.Ehcache delegate,
java.lang.String name,
boolean flushable)
|
Method Summary | |
---|---|
void |
clear()
Clear the cache. |
boolean |
equals(java.lang.Object object)
|
V |
get(K key)
Retrieve an object from this cache. |
java.util.Collection<K> |
getKeys()
Gets the keys of all objects currently stored in the cache. |
java.lang.String |
getName()
The name of the cache, uniquely identifies this cache. |
int |
hashCode()
|
boolean |
isFlushable()
Returns true if this cache can be flushed. |
void |
put(K key,
V value)
Put an object into the cache. |
void |
remove(K key)
Remove the object identified by the key from the cache. |
void |
removeAll()
Remove all of the objects from this cache. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DelegatingCache(net.sf.ehcache.Ehcache delegate, java.lang.String name, boolean flushable)
Method Detail |
---|
public java.lang.String getName()
ManagedCache
getName
in interface ManagedCache
public java.util.Collection<K> getKeys()
Cache
getKeys
in interface Cache<K,V>
Object
s keys.public void put(K key, V value)
Cache
put
in interface Cache<K,V>
key
- uniquely identifying the object to be added into the cache.value
- to be cached.public V get(K key)
Cache
get
in interface Cache<K,V>
key
- uniquely identifying the object to be retrieved.
null
if the object is not found.public void remove(K key)
Cache
remove
in interface Cache<K,V>
key
- uniquely identifying the object to be removed.public void removeAll()
Cache
removeAll
in interface Cache<K,V>
public void clear()
ManagedCache
clear
in interface ManagedCache
public boolean isFlushable()
ManagedCache
isFlushable
in interface ManagedCache
public boolean equals(@Nullable java.lang.Object object)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |