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 |
---|---|
default Optional<Integer> |
changeMaxEntries(@NonNull String name,
int newValue)
Persists updates to the max entries settings for the specified cache.
|
boolean |
saveSettings()
Persists all changes made so far by update* methods.
|
com.atlassian.fugue.Option<Integer> |
updateMaxEntries(@NonNull String name,
int newValue)
Deprecated.
since 7.0.1. Use
changeMaxEntries(String, int) |
@Deprecated com.atlassian.fugue.Option<Integer> updateMaxEntries(@NonNull String name, int newValue)
changeMaxEntries(String, int)
name
- the name of the cache to updatedefault Optional<Integer> changeMaxEntries(@NonNull String name, int newValue)
name
- the name of the cache to updateboolean saveSettings()
Copyright © 2003–2021 Atlassian. All rights reserved.