Class CachingSiteDarkFeaturesDao
- java.lang.Object
-
- com.atlassian.confluence.impl.feature.CachingSiteDarkFeaturesDao
-
- All Implemented Interfaces:
SiteDarkFeaturesDao
public class CachingSiteDarkFeaturesDao extends Object implements SiteDarkFeaturesDao
An implmentation ofSiteDarkFeaturesDao
which uses aCachedReference
to reduce pressure on a delegateSiteDarkFeaturesDao
.- Since:
- 7.7
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static CachingSiteDarkFeaturesDao
create(SiteDarkFeaturesDao delegate, com.atlassian.cache.CacheManager cacheManager)
boolean
disableSiteFeature(String featureKey)
boolean
enableSiteFeature(String featureKey)
Set<String>
getSiteEnabledFeatures()
-
-
-
Method Detail
-
create
public static CachingSiteDarkFeaturesDao create(SiteDarkFeaturesDao delegate, com.atlassian.cache.CacheManager cacheManager)
-
getSiteEnabledFeatures
public Set<String> getSiteEnabledFeatures()
- Specified by:
getSiteEnabledFeatures
in interfaceSiteDarkFeaturesDao
-
enableSiteFeature
public boolean enableSiteFeature(String featureKey)
- Specified by:
enableSiteFeature
in interfaceSiteDarkFeaturesDao
-
disableSiteFeature
public boolean disableSiteFeature(String featureKey)
- Specified by:
disableSiteFeature
in interfaceSiteDarkFeaturesDao
-
-