Class DefaultCacheSettingsManager

    • Method Detail

      • afterPropertiesSet

        @Deprecated
        public void afterPropertiesSet()
        Deprecated.
        since 7.12
        Specified by:
        afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean
      • changeMaxEntries

        public Optional<Integer> changeMaxEntries​(@NonNull String name,
                                                  int newValue)
        Change the max entries for a cache. Returns the previous value if it was set, or null if it was not set.
        Specified by:
        changeMaxEntries in interface CacheSettingsManager
        Parameters:
        name - the name of the cache to update
        newValue -
        Returns:
        the previous value of the specified max entries if any have
      • saveSettings

        public boolean saveSettings()
        Description copied from interface: CacheSettingsManager
        Persists all changes made so far by update* methods.

        Specified by:
        saveSettings in interface CacheSettingsManager
        Returns:
        true if changes were persisted successfully
      • getDefaults

        public @NonNull com.atlassian.cache.CacheSettings getDefaults​(@NonNull String cacheName)
        Specified by:
        getDefaults in interface com.atlassian.cache.CacheSettingsDefaultsProvider