|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.atlassian.confluence.cache.CacheAdapter<K,V>
DefaultConfluenceCache instead.
@Deprecated @Internal public abstract class CacheAdapter<K,V>
Delegates to an underlying cache. Subclass this to override just some of the underlying cache's behaviour.
| Constructor Summary | |
|---|---|
CacheAdapter(com.atlassian.cache.Cache<K,V> underlyingCache)
Deprecated. |
|
| Method Summary | |
|---|---|
boolean |
containsKey(K k)
Deprecated. |
V |
get(K key)
Deprecated. |
protected com.atlassian.cache.Cache<K,V> |
getDelegate()
Deprecated. |
Collection<K> |
getKeys()
Deprecated. |
String |
getName()
Deprecated. |
void |
put(K key,
V value)
Deprecated. |
V |
putIfAbsent(K key,
V value)
Deprecated. |
void |
remove(K key)
Deprecated. |
boolean |
remove(K key,
V value)
Deprecated. |
void |
removeAll()
Deprecated. |
boolean |
replace(K key,
V oldValue,
V newValue)
Deprecated. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.atlassian.cache.Cache |
|---|
addListener, get, removeListener |
| Constructor Detail |
|---|
public CacheAdapter(com.atlassian.cache.Cache<K,V> underlyingCache)
| Method Detail |
|---|
public String getName()
getName in interface com.atlassian.cache.Cache<K,V>public V get(K key)
get in interface com.atlassian.cache.Cache<K,V>public Collection<K> getKeys()
getKeys in interface com.atlassian.cache.Cache<K,V>
public void put(K key,
V value)
put in interface com.atlassian.cache.Cache<K,V>public void remove(K key)
remove in interface com.atlassian.cache.Cache<K,V>public void removeAll()
removeAll in interface com.atlassian.cache.Cache<K,V>
public V putIfAbsent(K key,
V value)
putIfAbsent in interface com.atlassian.cache.Cache<K,V>
public boolean replace(K key,
V oldValue,
V newValue)
replace in interface com.atlassian.cache.Cache<K,V>
public boolean remove(K key,
V value)
remove in interface com.atlassian.cache.Cache<K,V>
public boolean containsKey(@NotNull
K k)
containsKey in interface com.atlassian.cache.Cache<K,V>protected com.atlassian.cache.Cache<K,V> getDelegate()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||