com.atlassian.confluence.cache.ehcache
Class EhCacheConfigManager

java.lang.Object
  extended by com.atlassian.confluence.cache.ehcache.EhCacheConfigManager
All Implemented Interfaces:
CacheConfigManager

public class EhCacheConfigManager
extends java.lang.Object
implements CacheConfigManager

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).


Constructor Summary
EhCacheConfigManager(EhCacheConfig ehCacheConfig, net.sf.ehcache.CacheManager cacheManager)
           
 
Method Summary
 void changeMaxCacheSize(java.lang.String cacheName, int newMaxCacheSize)
          Changes the maximum cache size of the specified cache (both in runtime and where its persisted).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EhCacheConfigManager

public EhCacheConfigManager(EhCacheConfig ehCacheConfig,
                            net.sf.ehcache.CacheManager cacheManager)
Method Detail

changeMaxCacheSize

public void changeMaxCacheSize(java.lang.String cacheName,
                               int newMaxCacheSize)
Changes 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:
changeMaxCacheSize in interface CacheConfigManager
Parameters:
cacheName - name of cache
newMaxCacheSize - new max cache size


Copyright © 2003-2010 Atlassian. All Rights Reserved.