|
||||||||||
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(java.lang.String name)
Obtains cache settings for the specified cache. |
boolean |
saveSettings()
Persists all changes made so far by update* methods. |
com.atlassian.fugue.Option<java.lang.Integer> |
updateMaxEntries(java.lang.String name,
int newValue)
Updates max entries settings for the specified cache. |
Method Detail |
---|
com.atlassian.cache.CacheSettings obtainDefaults(@NotNull java.lang.String name)
name
- the name of the cache to obtain settings
com.atlassian.fugue.Option<java.lang.Integer> updateMaxEntries(@NotNull java.lang.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 |