@Internal public class ConfluenceMonitoringCache<K,V> extends Object implements ConfluenceCache<K,V>
ConfluenceMonitoring instance.| Constructor and Description |
|---|
ConfluenceMonitoringCache(ConfluenceCache<K,V> cache,
ConfluenceMonitoring confluenceMonitoring)
Constructs a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addListener(com.atlassian.cache.CacheEntryListener<K,V> kvCacheEntryListener,
boolean b) |
void |
clear() |
boolean |
containsKey(K k) |
protected Split |
createLockSplit() |
protected Split |
createReadSplit() |
protected Split |
createSplit(String operation) |
protected Split |
createUnlockSplit() |
protected Split |
createWriteSplit() |
Long |
currentExpireAfterAccessMillis() |
Long |
currentExpireAfterWriteMillis() |
Integer |
currentMaxEntries() |
V |
get(K key) |
V |
get(K k,
com.atlassian.cache.Supplier<? extends V> supplier) |
Collection<K> |
getKeys() |
String |
getName() |
SortedMap<com.atlassian.cache.CacheStatisticsKey,com.atlassian.util.concurrent.Supplier<Long>> |
getStatistics() |
boolean |
isFlushable() |
boolean |
isLocal() |
boolean |
isReplicateAsynchronously() |
boolean |
isReplicateViaCopy() |
void |
put(K key,
V value) |
V |
putIfAbsent(K key,
V value) |
void |
remove(K key) |
boolean |
remove(K key,
V value) |
void |
removeAll() |
void |
removeListener(com.atlassian.cache.CacheEntryListener<K,V> kvCacheEntryListener) |
boolean |
replace(K key,
V oldValue,
V newValue) |
void |
setTimeToLive(long timeToLive,
TimeUnit timeUnit)
Update the time to live.
|
boolean |
updateExpireAfterAccess(long expireAfter,
TimeUnit timeUnit) |
boolean |
updateExpireAfterWrite(long expireAfter,
TimeUnit timeUnit) |
boolean |
updateMaxEntries(int newValue) |
public ConfluenceMonitoringCache(ConfluenceCache<K,V> cache, ConfluenceMonitoring confluenceMonitoring)
cache - the (Cache) interface to the cache to be monitoredconfluenceMonitoring - the ConfluenceMonitoring instance to use for monitoring@Nonnull public V get(@Nonnull K k, @Nonnull com.atlassian.cache.Supplier<? extends V> supplier)
@Nonnull public Collection<K> getKeys()
public void removeAll()
public void addListener(@Nonnull com.atlassian.cache.CacheEntryListener<K,V> kvCacheEntryListener, boolean b)
public void removeListener(@Nonnull com.atlassian.cache.CacheEntryListener<K,V> kvCacheEntryListener)
public void clear()
clear in interface com.atlassian.cache.ManagedCachepublic boolean isFlushable()
isFlushable in interface com.atlassian.cache.ManagedCache@Nullable public Integer currentMaxEntries()
currentMaxEntries in interface com.atlassian.cache.ManagedCachepublic boolean updateMaxEntries(int newValue)
updateMaxEntries in interface com.atlassian.cache.ManagedCache@Nullable public Long currentExpireAfterAccessMillis()
currentExpireAfterAccessMillis in interface com.atlassian.cache.ManagedCachepublic boolean updateExpireAfterAccess(long expireAfter,
@Nonnull
TimeUnit timeUnit)
updateExpireAfterAccess in interface com.atlassian.cache.ManagedCache@Nullable public Long currentExpireAfterWriteMillis()
currentExpireAfterWriteMillis in interface com.atlassian.cache.ManagedCachepublic boolean updateExpireAfterWrite(long expireAfter,
@Nonnull
TimeUnit timeUnit)
updateExpireAfterWrite in interface com.atlassian.cache.ManagedCachepublic boolean isLocal()
isLocal in interface com.atlassian.cache.ManagedCachepublic boolean isReplicateAsynchronously()
isReplicateAsynchronously in interface com.atlassian.cache.ManagedCachepublic boolean isReplicateViaCopy()
isReplicateViaCopy in interface com.atlassian.cache.ManagedCache@Nonnull public SortedMap<com.atlassian.cache.CacheStatisticsKey,com.atlassian.util.concurrent.Supplier<Long>> getStatistics()
getStatistics in interface com.atlassian.cache.ManagedCachepublic void setTimeToLive(long timeToLive,
TimeUnit timeUnit)
ConfigurableCacheTimeUnit.SECONDS.setTimeToLive in interface ConfigurableCache<K,V>timeToLive - valuetimeUnit - unit of timeprotected Split createReadSplit()
protected Split createWriteSplit()
protected Split createLockSplit()
protected Split createUnlockSplit()
Copyright © 2003–2016 Atlassian. All rights reserved.