Class PropertiesFileCacheSettingsManager
java.lang.Object
com.atlassian.confluence.impl.cache.config.PropertiesFileCacheSettingsManager
- All Implemented Interfaces:
com.atlassian.cache.CacheSettingsDefaultsProvider,CacheSettingsManager
public final class PropertiesFileCacheSettingsManager
extends Object
implements CacheSettingsManager
- Since:
- 7.5
-
Constructor Summary
ConstructorsConstructorDescriptionPropertiesFileCacheSettingsManager(com.atlassian.dc.filestore.api.FileStore.Path settingsFile, com.atlassian.beehive.ClusterLockService clusterLockService) -
Method Summary
Modifier and TypeMethodDescriptionchangeMaxEntries(@NonNull String name, int newValue) Persists updates to the max entries settings for the specified cache.@NonNull com.atlassian.cache.CacheSettingsgetDefaults(@NonNull String cacheName) voidbooleanPersists all changes made so far by update* methods.
-
Constructor Details
-
PropertiesFileCacheSettingsManager
public PropertiesFileCacheSettingsManager(com.atlassian.dc.filestore.api.FileStore.Path settingsFile, com.atlassian.beehive.ClusterLockService clusterLockService)
-
-
Method Details
-
changeMaxEntries
Description copied from interface:CacheSettingsManagerPersists updates to the max entries settings for the specified cache.- Specified by:
changeMaxEntriesin 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
- Specified by:
getDefaultsin interfacecom.atlassian.cache.CacheSettingsDefaultsProvider
-