public class DefaultCacheConfigManager extends Object implements CacheConfigManager, org.springframework.beans.factory.InitializingBean, org.springframework.beans.factory.DisposableBean
Constructor and Description |
---|
DefaultCacheConfigManager(CacheSettingsManager cacheSettingsManager,
com.atlassian.cache.CacheManager cacheManager,
com.atlassian.event.api.EventPublisher eventPublisher) |
Modifier and Type | Method and Description |
---|---|
void |
afterPropertiesSet() |
void |
changeMaxCacheSize(String name,
int newValue)
Changes the max cache size.
|
void |
destroy() |
void |
onMaxEntriesSettingChanged(ClusterEventWrapper clusterEventWrapper)
Listen to cluster wide event about changing of max entries setting only.
|
public DefaultCacheConfigManager(CacheSettingsManager cacheSettingsManager, com.atlassian.cache.CacheManager cacheManager, com.atlassian.event.api.EventPublisher eventPublisher)
public void changeMaxCacheSize(String name, int newValue)
CacheConfigManager
changeMaxCacheSize
in interface CacheConfigManager
name
- cache namenewValue
- new max cache size@EventListener public void onMaxEntriesSettingChanged(ClusterEventWrapper clusterEventWrapper)
public void afterPropertiesSet() throws Exception
afterPropertiesSet
in interface org.springframework.beans.factory.InitializingBean
Exception
Copyright © 2003–2020 Atlassian. All rights reserved.