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 SummaryConstructorsConstructorDescriptionConfluenceManagedCache(com.atlassian.cache.ManagedCache delegate, boolean flushable) 
- 
Method SummaryModifier 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- 
ConfluenceManagedCachepublic ConfluenceManagedCache(com.atlassian.cache.ManagedCache delegate, boolean flushable) 
 
- 
- 
Method Details- 
clearpublic void clear()- Specified by:
- clearin interface- com.atlassian.cache.ManagedCache
 
- 
getName- Specified by:
- getNamein interface- com.atlassian.cache.ManagedCache
 
- 
isFlushablepublic boolean isFlushable()- Specified by:
- isFlushablein interface- com.atlassian.cache.ManagedCache
 
- 
currentMaxEntries- Specified by:
- currentMaxEntriesin interface- com.atlassian.cache.ManagedCache
 
- 
updateMaxEntriespublic boolean updateMaxEntries(int newValue) - Specified by:
- updateMaxEntriesin interface- com.atlassian.cache.ManagedCache
 
- 
currentExpireAfterAccessMillis- Specified by:
- currentExpireAfterAccessMillisin interface- com.atlassian.cache.ManagedCache
 
- 
updateExpireAfterAccess- Specified by:
- updateExpireAfterAccessin interface- com.atlassian.cache.ManagedCache
 
- 
currentExpireAfterWriteMillis- Specified by:
- currentExpireAfterWriteMillisin interface- com.atlassian.cache.ManagedCache
 
- 
updateExpireAfterWrite- Specified by:
- updateExpireAfterWritein interface- com.atlassian.cache.ManagedCache
 
- 
isLocalpublic boolean isLocal()- Specified by:
- isLocalin interface- com.atlassian.cache.ManagedCache
 
- 
isReplicateAsynchronouslypublic boolean isReplicateAsynchronously()- Specified by:
- isReplicateAsynchronouslyin interface- com.atlassian.cache.ManagedCache
 
- 
isReplicateViaCopypublic boolean isReplicateViaCopy()- Specified by:
- isReplicateViaCopyin interface- com.atlassian.cache.ManagedCache
 
- 
isStatisticsEnabledpublic boolean isStatisticsEnabled()- Specified by:
- isStatisticsEnabledin interface- com.atlassian.cache.ManagedCache
 
- 
setStatisticspublic void setStatistics(boolean b) - Specified by:
- setStatisticsin interface- com.atlassian.cache.ManagedCache
 
- 
getStatistics- Specified by:
- getStatisticsin interface- com.atlassian.cache.ManagedCache
 
- 
getCacheCollectorpublic @Nullable com.atlassian.instrumentation.caches.CacheCollector getCacheCollector()- Specified by:
- getCacheCollectorin interface- com.atlassian.cache.ManagedCache
 
 
-