Package com.atlassian.confluence.cache
Class ConfluenceManagedCache
java.lang.Object
com.atlassian.confluence.cache.ConfluenceManagedCache
- All Implemented Interfaces:
com.atlassian.cache.ManagedCache
Confluence-specific wrapper around a standard atlassian-cache implementation. Adds support for ensuring that certain
system caches stay non-flushable.
-
Constructor Summary
ConstructorsConstructorDescriptionConfluenceManagedCache
(com.atlassian.cache.ManagedCache delegate, boolean flushable) -
Method Summary
Modifier and TypeMethodDescriptionvoid
clear()
@Nullable com.atlassian.instrumentation.caches.CacheCollector
getName()
boolean
boolean
isLocal()
boolean
boolean
boolean
void
setStatistics
(boolean b) boolean
updateExpireAfterAccess
(long expireAfter, TimeUnit timeUnit) boolean
updateExpireAfterWrite
(long expireAfter, TimeUnit timeUnit) boolean
updateMaxEntries
(int newValue)
-
Constructor Details
-
ConfluenceManagedCache
public ConfluenceManagedCache(com.atlassian.cache.ManagedCache delegate, boolean flushable)
-
-
Method Details
-
clear
public void clear()- Specified by:
clear
in interfacecom.atlassian.cache.ManagedCache
-
getName
- Specified by:
getName
in interfacecom.atlassian.cache.ManagedCache
-
isFlushable
public boolean isFlushable()- Specified by:
isFlushable
in interfacecom.atlassian.cache.ManagedCache
-
currentMaxEntries
- Specified by:
currentMaxEntries
in interfacecom.atlassian.cache.ManagedCache
-
updateMaxEntries
public boolean updateMaxEntries(int newValue) - Specified by:
updateMaxEntries
in interfacecom.atlassian.cache.ManagedCache
-
currentExpireAfterAccessMillis
- Specified by:
currentExpireAfterAccessMillis
in interfacecom.atlassian.cache.ManagedCache
-
updateExpireAfterAccess
- Specified by:
updateExpireAfterAccess
in interfacecom.atlassian.cache.ManagedCache
-
currentExpireAfterWriteMillis
- Specified by:
currentExpireAfterWriteMillis
in interfacecom.atlassian.cache.ManagedCache
-
updateExpireAfterWrite
- Specified by:
updateExpireAfterWrite
in interfacecom.atlassian.cache.ManagedCache
-
isLocal
public boolean isLocal()- Specified by:
isLocal
in interfacecom.atlassian.cache.ManagedCache
-
isReplicateAsynchronously
public boolean isReplicateAsynchronously()- Specified by:
isReplicateAsynchronously
in interfacecom.atlassian.cache.ManagedCache
-
isReplicateViaCopy
public boolean isReplicateViaCopy()- Specified by:
isReplicateViaCopy
in interfacecom.atlassian.cache.ManagedCache
-
isStatisticsEnabled
public boolean isStatisticsEnabled()- Specified by:
isStatisticsEnabled
in interfacecom.atlassian.cache.ManagedCache
-
setStatistics
public void setStatistics(boolean b) - Specified by:
setStatistics
in interfacecom.atlassian.cache.ManagedCache
-
getStatistics
- Specified by:
getStatistics
in interfacecom.atlassian.cache.ManagedCache
-
getCacheCollector
public @Nullable com.atlassian.instrumentation.caches.CacheCollector getCacheCollector()- Specified by:
getCacheCollector
in interfacecom.atlassian.cache.ManagedCache
-