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 TypeMethodDescriptionvoidclear()@Nullable com.atlassian.instrumentation.caches.CacheCollectorgetName()booleanbooleanisLocal()booleanbooleanbooleanvoidsetStatistics(boolean b) booleanupdateExpireAfterAccess(long expireAfter, TimeUnit timeUnit) booleanupdateExpireAfterWrite(long expireAfter, TimeUnit timeUnit) booleanupdateMaxEntries(int newValue)  
- 
Constructor Details
- 
ConfluenceManagedCache
public ConfluenceManagedCache(com.atlassian.cache.ManagedCache delegate, boolean flushable)  
 - 
 - 
Method Details
- 
clear
public void clear()- Specified by:
 clearin interfacecom.atlassian.cache.ManagedCache
 - 
getName
- Specified by:
 getNamein interfacecom.atlassian.cache.ManagedCache
 - 
isFlushable
public boolean isFlushable()- Specified by:
 isFlushablein interfacecom.atlassian.cache.ManagedCache
 - 
currentMaxEntries
- Specified by:
 currentMaxEntriesin interfacecom.atlassian.cache.ManagedCache
 - 
updateMaxEntries
public boolean updateMaxEntries(int newValue) - Specified by:
 updateMaxEntriesin interfacecom.atlassian.cache.ManagedCache
 - 
currentExpireAfterAccessMillis
- Specified by:
 currentExpireAfterAccessMillisin interfacecom.atlassian.cache.ManagedCache
 - 
updateExpireAfterAccess
- Specified by:
 updateExpireAfterAccessin interfacecom.atlassian.cache.ManagedCache
 - 
currentExpireAfterWriteMillis
- Specified by:
 currentExpireAfterWriteMillisin interfacecom.atlassian.cache.ManagedCache
 - 
updateExpireAfterWrite
- Specified by:
 updateExpireAfterWritein interfacecom.atlassian.cache.ManagedCache
 - 
isLocal
public boolean isLocal()- Specified by:
 isLocalin interfacecom.atlassian.cache.ManagedCache
 - 
isReplicateAsynchronously
public boolean isReplicateAsynchronously()- Specified by:
 isReplicateAsynchronouslyin interfacecom.atlassian.cache.ManagedCache
 - 
isReplicateViaCopy
public boolean isReplicateViaCopy()- Specified by:
 isReplicateViaCopyin interfacecom.atlassian.cache.ManagedCache
 - 
isStatisticsEnabled
public boolean isStatisticsEnabled()- Specified by:
 isStatisticsEnabledin interfacecom.atlassian.cache.ManagedCache
 - 
setStatistics
public void setStatistics(boolean b) - Specified by:
 setStatisticsin interfacecom.atlassian.cache.ManagedCache
 - 
getStatistics
- Specified by:
 getStatisticsin interfacecom.atlassian.cache.ManagedCache
 - 
getCacheCollector
public @Nullable com.atlassian.instrumentation.caches.CacheCollector getCacheCollector()- Specified by:
 getCacheCollectorin interfacecom.atlassian.cache.ManagedCache
 
 -