Package com.atlassian.confluence.cache
Class CachingCacheSettingsManager
- java.lang.Object
-
- com.atlassian.confluence.cache.CachingCacheSettingsManager
-
- All Implemented Interfaces:
com.atlassian.cache.CacheSettingsDefaultsProvider,CacheSettingsManager
@Internal public class CachingCacheSettingsManager extends Object implements CacheSettingsManager
Caches calculation of caches settings in order to avoid traversing long list of expensive regexps- Since:
- 5.6
-
-
Constructor Summary
Constructors Constructor Description CachingCacheSettingsManager(CacheSettingsManager delegate)
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description @NonNull com.atlassian.cache.CacheSettingsgetDefaults(@NonNull String name)voidreloadSettings()booleansaveSettings()Persists all changes made so far by update* methods.com.atlassian.fugue.Option<Integer>updateMaxEntries(@NonNull String name, int newValue)Deprecated.since 7.0.1.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.atlassian.confluence.cache.CacheSettingsManager
changeMaxEntries
-
-
-
-
Constructor Detail
-
CachingCacheSettingsManager
public CachingCacheSettingsManager(CacheSettingsManager delegate)
-
-
Method Detail
-
updateMaxEntries
@Deprecated public com.atlassian.fugue.Option<Integer> updateMaxEntries(@NonNull String name, int newValue)
Deprecated.since 7.0.1. UseCacheSettingsManager.changeMaxEntries(String, int)Description copied from interface:CacheSettingsManagerPersists updates to the max entries settings for the specified cache.- Specified by:
updateMaxEntriesin interfaceCacheSettingsManager- Parameters:
name- the name of the cache to update- Returns:
- the previous value of the specified max entries if any have
-
saveSettings
public boolean saveSettings()
Description copied from interface:CacheSettingsManagerPersists all changes made so far by update* methods.- Specified by:
saveSettingsin interfaceCacheSettingsManager- Returns:
- true if changes were persisted successfully
-
reloadSettings
public void reloadSettings()
- Specified by:
reloadSettingsin interfaceCacheSettingsManager
-
getDefaults
public @NonNull com.atlassian.cache.CacheSettings getDefaults(@NonNull String name)
- Specified by:
getDefaultsin interfacecom.atlassian.cache.CacheSettingsDefaultsProvider
-
-