public final class PropertiesFileCacheSettingsManager extends Object implements CacheSettingsManager
| Constructor and Description |
|---|
PropertiesFileCacheSettingsManager(com.atlassian.dc.filestore.api.FileStore.Path settingsFile,
Lock writeLock) |
| Modifier and Type | Method and Description |
|---|---|
com.atlassian.cache.CacheSettings |
getDefaults(String cacheName) |
boolean |
saveSettings()
Persists all changes made so far by update* methods.
|
com.atlassian.fugue.Option<Integer> |
updateMaxEntries(String name,
int newValue)
Persists updates to the max entries settings for the specified cache.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitchangeMaxEntriespublic PropertiesFileCacheSettingsManager(com.atlassian.dc.filestore.api.FileStore.Path settingsFile,
Lock writeLock)
public com.atlassian.fugue.Option<Integer> updateMaxEntries(@Nonnull String name, int newValue)
CacheSettingsManagerupdateMaxEntries in interface CacheSettingsManagername - the name of the cache to updatepublic boolean saveSettings()
CacheSettingsManagersaveSettings in interface CacheSettingsManagerCopyright © 2003–2022 Atlassian. All rights reserved.