Package com.atlassian.confluence.cache
Class DefaultCacheConfigManager
- java.lang.Object
-
- com.atlassian.confluence.cache.DefaultCacheConfigManager
-
- All Implemented Interfaces:
CacheConfigManager,org.springframework.beans.factory.DisposableBean,org.springframework.beans.factory.InitializingBean
public class DefaultCacheConfigManager extends Object implements CacheConfigManager, org.springframework.beans.factory.InitializingBean, org.springframework.beans.factory.DisposableBean
-
-
Constructor Summary
Constructors Constructor Description DefaultCacheConfigManager(CacheSettingsManager cacheSettingsManager, com.atlassian.cache.CacheManager cacheManager, com.atlassian.event.api.EventPublisher eventPublisher)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidafterPropertiesSet()voidchangeMaxCacheSize(String name, int newValue)Changes the max cache size.voiddestroy()voidonMaxEntriesSettingChanged(ClusterEventWrapper clusterEventWrapper)Listen to cluster wide event about changing of max entries setting only.
-
-
-
Constructor Detail
-
DefaultCacheConfigManager
public DefaultCacheConfigManager(CacheSettingsManager cacheSettingsManager, com.atlassian.cache.CacheManager cacheManager, com.atlassian.event.api.EventPublisher eventPublisher)
-
-
Method Detail
-
changeMaxCacheSize
public void changeMaxCacheSize(String name, int newValue)
Description copied from interface:CacheConfigManagerChanges the max cache size.- Specified by:
changeMaxCacheSizein interfaceCacheConfigManager- Parameters:
name- cache namenewValue- new max cache size
-
onMaxEntriesSettingChanged
@EventListener public void onMaxEntriesSettingChanged(ClusterEventWrapper clusterEventWrapper)
Listen to cluster wide event about changing of max entries setting only. This should only ever happen for local caches, since distributed ones are centrally managed and only require updating from one node.
-
afterPropertiesSet
public void afterPropertiesSet() throws Exception- Specified by:
afterPropertiesSetin interfaceorg.springframework.beans.factory.InitializingBean- Throws:
Exception
-
-