public interface CacheSettingsManager
extends com.atlassian.cache.CacheSettingsDefaultsProvider
At the moment only updating of max entries is supported.
Runtime update is done via calling updateMaxEntries and changes become instantly visible to obtainDefaults.
Persistence is done via calling saveSettings and it stores changes made by all previous calls to update* methods.
Modifier and Type | Method and Description |
---|---|
com.atlassian.cache.CacheSettings |
obtainDefaults(String name)
Deprecated.
since 5.7 use
CacheSettingsDefaultsProvider.getDefaults(String) |
boolean |
saveSettings()
Persists all changes made so far by update* methods.
|
com.atlassian.fugue.Option<Integer> |
updateMaxEntries(String name,
int newValue)
Persists updates to the max entries settings for the specified cache.
|
@Deprecated com.atlassian.cache.CacheSettings obtainDefaults(@Nonnull String name)
CacheSettingsDefaultsProvider.getDefaults(String)
com.atlassian.fugue.Option<Integer> updateMaxEntries(@Nonnull String name, int newValue)
name
- the name of the cache to updateboolean saveSettings()
Copyright © 2003–2018 Atlassian. All rights reserved.