public class ConfluenceManagedCache extends Object implements com.atlassian.cache.ManagedCache
Constructor and Description |
---|
ConfluenceManagedCache(com.atlassian.cache.ManagedCache delegate,
boolean flushable) |
Modifier and Type | Method and Description |
---|---|
void |
clear() |
Long |
currentExpireAfterAccessMillis() |
Long |
currentExpireAfterWriteMillis() |
Integer |
currentMaxEntries() |
com.atlassian.instrumentation.caches.CacheCollector |
getCacheCollector() |
String |
getName() |
SortedMap<com.atlassian.cache.CacheStatisticsKey,com.atlassian.util.concurrent.Supplier<Long>> |
getStatistics() |
boolean |
isFlushable() |
boolean |
isLocal() |
boolean |
isReplicateAsynchronously() |
boolean |
isReplicateViaCopy() |
boolean |
isStatisticsEnabled() |
void |
setStatistics(boolean b) |
boolean |
updateExpireAfterAccess(long expireAfter,
TimeUnit timeUnit) |
boolean |
updateExpireAfterWrite(long expireAfter,
TimeUnit timeUnit) |
boolean |
updateMaxEntries(int newValue) |
public ConfluenceManagedCache(com.atlassian.cache.ManagedCache delegate, boolean flushable)
public void clear()
clear
in interface com.atlassian.cache.ManagedCache
public String getName()
getName
in interface com.atlassian.cache.ManagedCache
public boolean isFlushable()
isFlushable
in interface com.atlassian.cache.ManagedCache
public Integer currentMaxEntries()
currentMaxEntries
in interface com.atlassian.cache.ManagedCache
public boolean updateMaxEntries(int newValue)
updateMaxEntries
in interface com.atlassian.cache.ManagedCache
public Long currentExpireAfterAccessMillis()
currentExpireAfterAccessMillis
in interface com.atlassian.cache.ManagedCache
public boolean updateExpireAfterAccess(long expireAfter, TimeUnit timeUnit)
updateExpireAfterAccess
in interface com.atlassian.cache.ManagedCache
public Long currentExpireAfterWriteMillis()
currentExpireAfterWriteMillis
in interface com.atlassian.cache.ManagedCache
public boolean updateExpireAfterWrite(long expireAfter, TimeUnit timeUnit)
updateExpireAfterWrite
in interface com.atlassian.cache.ManagedCache
public boolean isLocal()
isLocal
in interface com.atlassian.cache.ManagedCache
public boolean isReplicateAsynchronously()
isReplicateAsynchronously
in interface com.atlassian.cache.ManagedCache
public boolean isReplicateViaCopy()
isReplicateViaCopy
in interface com.atlassian.cache.ManagedCache
public boolean isStatisticsEnabled()
isStatisticsEnabled
in interface com.atlassian.cache.ManagedCache
public void setStatistics(boolean b)
setStatistics
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.ManagedCache
@Nullable public com.atlassian.instrumentation.caches.CacheCollector getCacheCollector()
getCacheCollector
in interface com.atlassian.cache.ManagedCache
Copyright © 2003–2017 Atlassian. All rights reserved.