public class DefaultCacheSettingsManager extends Object implements CacheSettingsManager, org.springframework.beans.factory.InitializingBean
CacheSettingsManager
which delegates to another CacheSettingsDefaultsProvider
to
provide the default cache config, and another CacheSettingsManager
to handle the site-specific settings
overrides.Constructor and Description |
---|
DefaultCacheSettingsManager(BootstrapManager bootstrapManager,
com.atlassian.beehive.ClusterLockService clusterLockService,
String cacheSettingsDefaults,
String cacheSettingsOverrides) |
DefaultCacheSettingsManager(BootstrapManager bootstrapManager,
com.atlassian.beehive.ClusterLockService clusterLockService,
String cacheSettingsDefaults,
String cacheSettingsOverrides,
List<String> ignored)
Deprecated.
since 5.9.1
|
Modifier and Type | Method and Description |
---|---|
void |
afterPropertiesSet() |
@NonNull com.atlassian.cache.CacheSettings |
getDefaults(@NonNull String cacheName) |
boolean |
saveSettings()
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. Use
CacheSettingsManager.changeMaxEntries(String, int) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
changeMaxEntries
public DefaultCacheSettingsManager(BootstrapManager bootstrapManager, com.atlassian.beehive.ClusterLockService clusterLockService, String cacheSettingsDefaults, String cacheSettingsOverrides)
@Deprecated public DefaultCacheSettingsManager(BootstrapManager bootstrapManager, com.atlassian.beehive.ClusterLockService clusterLockService, String cacheSettingsDefaults, String cacheSettingsOverrides, List<String> ignored)
public void afterPropertiesSet()
afterPropertiesSet
in interface org.springframework.beans.factory.InitializingBean
@Deprecated public com.atlassian.fugue.Option<Integer> updateMaxEntries(@NonNull String name, int newValue)
CacheSettingsManager.changeMaxEntries(String, int)
CacheSettingsManager
updateMaxEntries
in interface CacheSettingsManager
name
- the name of the cache to updatepublic boolean saveSettings()
CacheSettingsManager
saveSettings
in interface CacheSettingsManager
public @NonNull com.atlassian.cache.CacheSettings getDefaults(@NonNull String cacheName)
getDefaults
in interface com.atlassian.cache.CacheSettingsDefaultsProvider
Copyright © 2003–2020 Atlassian. All rights reserved.