Class EhCacheConfigManager
java.lang.Object
com.atlassian.confluence.cache.ehcache.EhCacheConfigManager
- All Implemented Interfaces:
- CacheConfigManager,- org.springframework.beans.factory.InitializingBean
public class EhCacheConfigManager
extends Object
implements CacheConfigManager, org.springframework.beans.factory.InitializingBean
Class that allows Confluence's ehcache configuration to be modified programmatically.
 Changes will be made to both the runtime configuration as well as the persisted configuration (allowing
 changes to persist across restarts).
- 
Field SummaryFields
- 
Constructor SummaryConstructorsConstructorDescriptionEhCacheConfigManager(EhCacheConfigStore ehCacheConfigStore, EhCacheManager ehCacheManager) 
- 
Method SummaryModifier and TypeMethodDescriptionvoidvoidchangeMaxCacheSize(String cacheName, int newMaxCacheSize) Changes the maximum cache size of the specified cache (both in runtime and where its persisted).
- 
Field Details- 
CACHE_MAX_ENTRIES_LOCAL_HEAP_CONFIG_KEY_PREFIX- See Also:
 
 
- 
- 
Constructor Details- 
EhCacheConfigManager
 
- 
- 
Method Details- 
afterPropertiesSetpublic void afterPropertiesSet()- Specified by:
- afterPropertiesSetin interface- org.springframework.beans.factory.InitializingBean
 
- 
changeMaxCacheSizeChanges the maximum cache size of the specified cache (both in runtime and where its persisted). If no config is explicitly declared, a new cache configuration is created based off of the default configuration.- Specified by:
- changeMaxCacheSizein interface- CacheConfigManager
- Parameters:
- cacheName- name of cache
- newMaxCacheSize- new max cache size
 
 
-