com.atlassian.confluence.cache
Class CacheAdapter<K,V>

java.lang.Object
  extended by com.atlassian.confluence.cache.CacheAdapter<K,V>
All Implemented Interfaces:
com.atlassian.cache.Cache<K,V>

Deprecated. since 5.7 Use DefaultConfluenceCache instead.

@Deprecated
@Internal
public abstract class CacheAdapter<K,V>
extends Object
implements com.atlassian.cache.Cache<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

CacheAdapter

public CacheAdapter(com.atlassian.cache.Cache<K,V> underlyingCache)
Deprecated. 
Method Detail

getName

public String getName()
Deprecated. 
Specified by:
getName in interface com.atlassian.cache.Cache<K,V>

get

public V get(K key)
Deprecated. 
Specified by:
get in interface com.atlassian.cache.Cache<K,V>

getKeys

public Collection<K> getKeys()
Deprecated. 
Specified by:
getKeys in interface com.atlassian.cache.Cache<K,V>

put

public void put(K key,
                V value)
Deprecated. 
Specified by:
put in interface com.atlassian.cache.Cache<K,V>

remove

public void remove(K key)
Deprecated. 
Specified by:
remove in interface com.atlassian.cache.Cache<K,V>

removeAll

public void removeAll()
Deprecated. 
Specified by:
removeAll in interface com.atlassian.cache.Cache<K,V>

putIfAbsent

public V putIfAbsent(K key,
                     V value)
Deprecated. 
Specified by:
putIfAbsent in interface com.atlassian.cache.Cache<K,V>

replace

public boolean replace(K key,
                       V oldValue,
                       V newValue)
Deprecated. 
Specified by:
replace in interface com.atlassian.cache.Cache<K,V>

remove

public boolean remove(K key,
                      V value)
Deprecated. 
Specified by:
remove in interface com.atlassian.cache.Cache<K,V>

containsKey

public boolean containsKey(@NotNull
                           K k)
Deprecated. 
Specified by:
containsKey in interface com.atlassian.cache.Cache<K,V>

getDelegate

protected com.atlassian.cache.Cache<K,V> getDelegate()
Deprecated. 


Copyright © 2003–2015 Atlassian. All rights reserved.