com.atlassian.confluence.cache
Class CacheAdapter
java.lang.Object
com.atlassian.confluence.cache.CacheAdapter
- All Implemented Interfaces:
- com.atlassian.cache.Cache
- Direct Known Subclasses:
- DeferredOperationsCache
public abstract class CacheAdapter
- extends java.lang.Object
- implements com.atlassian.cache.Cache
Delegates to an underlying cache. Subclass this to override just some
of the underlying cache's behaviour.
Constructor Summary |
CacheAdapter(com.atlassian.cache.Cache underlyingCache)
|
Method Summary |
java.lang.Object |
get(java.lang.Object key)
|
protected com.atlassian.cache.Cache |
getDelegate()
|
java.util.Collection |
getKeys()
|
java.lang.String |
getName()
|
void |
put(java.lang.Object key,
java.lang.Object value)
|
void |
remove(java.lang.Object key)
|
void |
removeAll()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CacheAdapter
public CacheAdapter(com.atlassian.cache.Cache underlyingCache)
getName
public java.lang.String getName()
- Specified by:
getName
in interface com.atlassian.cache.Cache
get
public java.lang.Object get(java.lang.Object key)
- Specified by:
get
in interface com.atlassian.cache.Cache
getKeys
public java.util.Collection getKeys()
- Specified by:
getKeys
in interface com.atlassian.cache.Cache
put
public void put(java.lang.Object key,
java.lang.Object value)
- Specified by:
put
in interface com.atlassian.cache.Cache
remove
public void remove(java.lang.Object key)
- Specified by:
remove
in interface com.atlassian.cache.Cache
removeAll
public void removeAll()
- Specified by:
removeAll
in interface com.atlassian.cache.Cache
getDelegate
protected com.atlassian.cache.Cache getDelegate()
Copyright © 2003-2013 Atlassian. All Rights Reserved.