Package com.atlassian.confluence.cache
Class DefaultCacheSettingsManager
java.lang.Object
com.atlassian.confluence.cache.DefaultCacheSettingsManager
- All Implemented Interfaces:
- com.atlassian.cache.CacheSettingsDefaultsProvider,- CacheSettingsManager
An implementation of 
CacheSettingsManager which delegates to another CacheSettingsDefaultsProvider to
 provide the default cache config, and another CacheSettingsManager to handle the site-specific settings
 overrides.- See Also:
- 
Constructor SummaryConstructorsConstructorDescriptionDefaultCacheSettingsManager(com.atlassian.cache.CacheSettingsDefaultsProvider configDefaultsReader, CacheSettingsManager configOverridesManager) 
- 
Method SummaryModifier and TypeMethodDescriptionchangeMaxEntries(@NonNull String name, int newValue) Change the max entries for a cache.@NonNull com.atlassian.cache.CacheSettingsgetDefaults(@NonNull String cacheName) voidbooleanPersists all changes made so far by update* methods.
- 
Constructor Details- 
DefaultCacheSettingsManagerpublic DefaultCacheSettingsManager(com.atlassian.cache.CacheSettingsDefaultsProvider configDefaultsReader, CacheSettingsManager configOverridesManager) 
 
- 
- 
Method Details- 
changeMaxEntriesChange the max entries for a cache. Returns the previous value if it was set, or null if it was not set.- Specified by:
- changeMaxEntriesin interface- CacheSettingsManager
- Parameters:
- name- the name of the cache to update
- Returns:
- the previous value of the specified max entries if any have
 
- 
saveSettingspublic boolean saveSettings()Description copied from interface:CacheSettingsManagerPersists all changes made so far by update* methods.- Specified by:
- saveSettingsin interface- CacheSettingsManager
- Returns:
- true if changes were persisted successfully
 
- 
reloadSettingspublic void reloadSettings()- Specified by:
- reloadSettingsin interface- CacheSettingsManager
 
- 
getDefaults- Specified by:
- getDefaultsin interface- com.atlassian.cache.CacheSettingsDefaultsProvider
 
 
-