com.atlassian.confluence.cache
Class ConfluenceMonitoringCache<K,V>
java.lang.Object
com.atlassian.confluence.cache.ConfluenceMonitoringCache<K,V>
- All Implemented Interfaces:
- com.atlassian.cache.Cache<K,V>, ConfigurableCache<K,V>
- Direct Known Subclasses:
- ConfluenceMonitoringLockingCache
@Internal
public class ConfluenceMonitoringCache<K,V>
- extends java.lang.Object
- implements ConfigurableCache<K,V>
A wrapper for monitoring the performance of Confluence caches. The performance is monitored using the supplied
ConfluenceMonitoring instance.
- Since:
- 5.6
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ConfluenceMonitoringCache
public ConfluenceMonitoringCache(ConfigurableCache<K,V> cache,
ConfluenceMonitoring confluenceMonitoring)
- Constructs a new instance.
- Parameters:
cache - the (ConfigurableCache) interface to the cache to be monitoredconfluenceMonitoring - the ConfluenceMonitoring instance to use for monitoring
get
public V get(K key)
- Specified by:
get in interface com.atlassian.cache.Cache<K,V>
containsKey
public boolean containsKey(@NotNull
K k)
- Specified by:
containsKey in interface com.atlassian.cache.Cache<K,V>
getKeys
public java.util.Collection<K> getKeys()
- Specified by:
getKeys in interface com.atlassian.cache.Cache<K,V>
put
public void put(K key,
V value)
- Specified by:
put in interface com.atlassian.cache.Cache<K,V>
remove
public void remove(K key)
- Specified by:
remove in interface com.atlassian.cache.Cache<K,V>
removeAll
public void removeAll()
- Specified by:
removeAll in interface com.atlassian.cache.Cache<K,V>
putIfAbsent
public V putIfAbsent(K key,
V value)
- Specified by:
putIfAbsent in interface com.atlassian.cache.Cache<K,V>
replace
public boolean replace(K key,
V oldValue,
V newValue)
- Specified by:
replace in interface com.atlassian.cache.Cache<K,V>
remove
public boolean remove(K key,
V value)
- Specified by:
remove in interface com.atlassian.cache.Cache<K,V>
getName
public java.lang.String getName()
- Specified by:
getName in interface com.atlassian.cache.Cache<K,V>
setTimeToLive
public void setTimeToLive(long timeToLive,
java.util.concurrent.TimeUnit timeUnit)
- Description copied from interface:
ConfigurableCache
- Update the time to live. Please note, some implementations cannot store time values smaller than
TimeUnit.SECONDS.
- Specified by:
setTimeToLive in interface ConfigurableCache<K,V>
- Parameters:
timeToLive - valuetimeUnit - unit of time
createSplit
protected Split createSplit(java.lang.String operation)
createReadSplit
protected Split createReadSplit()
createWriteSplit
protected Split createWriteSplit()
createLockSplit
protected Split createLockSplit()
createUnlockSplit
protected Split createUnlockSplit()
Copyright © 2003-2014 Atlassian. All Rights Reserved.