|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface CacheSettingsManager
A manager for cache settings, provides operations for retrieving, runtime update and saving settings to persistent storage.
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.
| Method Summary | |
|---|---|
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. |
| Methods inherited from interface com.atlassian.cache.CacheSettingsDefaultsProvider |
|---|
getDefaults |
| Method Detail |
|---|
@Deprecated
com.atlassian.cache.CacheSettings obtainDefaults(@NotNull
String name)
CacheSettingsDefaultsProvider.getDefaults(String)
com.atlassian.fugue.Option<Integer> updateMaxEntries(@NotNull
String name,
int newValue)
name - the name of the cache to update
boolean saveSettings()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||