Package com.atlassian.confluence.cache
Class DefaultCacheSettingsManager
- java.lang.Object
-
- com.atlassian.confluence.cache.DefaultCacheSettingsManager
-
- All Implemented Interfaces:
com.atlassian.cache.CacheSettingsDefaultsProvider
,CacheSettingsManager
,org.springframework.beans.factory.InitializingBean
public class DefaultCacheSettingsManager extends Object implements CacheSettingsManager, org.springframework.beans.factory.InitializingBean
An implementation ofCacheSettingsManager
which delegates to anotherCacheSettingsDefaultsProvider
to provide the default cache config, and anotherCacheSettingsManager
to handle the site-specific settings overrides.
-
-
Constructor Summary
Constructors Constructor Description DefaultCacheSettingsManager(com.atlassian.cache.CacheSettingsDefaultsProvider configDefaultsReader, CacheSettingsManager configOverridesManager)
DefaultCacheSettingsManager(BootstrapManager bootstrapManager, com.atlassian.beehive.ClusterLockService clusterLockService, String cacheSettingsDefaults, String cacheSettingsOverrides)
Deprecated.since 7.12 UseCacheSettingsManagerFactory
DefaultCacheSettingsManager(BootstrapManager bootstrapManager, com.atlassian.beehive.ClusterLockService clusterLockService, String cacheSettingsDefaults, String cacheSettingsOverrides, List<String> ignored)
Deprecated.since 5.9.1 UseCacheSettingsManagerFactory
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description void
afterPropertiesSet()
Deprecated.since 7.12com.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)
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
-
DefaultCacheSettingsManager
@Deprecated public DefaultCacheSettingsManager(BootstrapManager bootstrapManager, com.atlassian.beehive.ClusterLockService clusterLockService, String cacheSettingsDefaults, String cacheSettingsOverrides)
Deprecated.since 7.12 UseCacheSettingsManagerFactory
-
DefaultCacheSettingsManager
public DefaultCacheSettingsManager(com.atlassian.cache.CacheSettingsDefaultsProvider configDefaultsReader, CacheSettingsManager configOverridesManager)
-
DefaultCacheSettingsManager
@Deprecated public DefaultCacheSettingsManager(BootstrapManager bootstrapManager, com.atlassian.beehive.ClusterLockService clusterLockService, String cacheSettingsDefaults, String cacheSettingsOverrides, List<String> ignored)
Deprecated.since 5.9.1 UseCacheSettingsManagerFactory
-
-
Method Detail
-
afterPropertiesSet
@Deprecated public void afterPropertiesSet()
Deprecated.since 7.12- Specified by:
afterPropertiesSet
in interfaceorg.springframework.beans.factory.InitializingBean
-
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:CacheSettingsManager
Persists updates to the max entries settings for the specified cache.- Specified by:
updateMaxEntries
in 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:CacheSettingsManager
Persists all changes made so far by update* methods.- Specified by:
saveSettings
in interfaceCacheSettingsManager
- Returns:
- true if changes were persisted successfully
-
getDefaults
@Nonnull public com.atlassian.cache.CacheSettings getDefaults(@Nonnull String cacheName)
- Specified by:
getDefaults
in interfacecom.atlassian.cache.CacheSettingsDefaultsProvider
-
-