public class DarkFeatureDrivenSessionDataCacheFactory extends AbstractSessionDataCacheFactory
SessionDataCacheFactory implementation that checks for a dark feature under the key of DARK_FEATURE_KEY
to determine which SessionDataCache implementation it should create. If the dark feature is enabled a replicated atlassian-cache backed cache will be created,
otherwise a Guava backed cache will be used.| Constructor and Description |
|---|
DarkFeatureDrivenSessionDataCacheFactory(com.atlassian.sal.api.features.DarkFeatureManager darkFeatureManager,
com.atlassian.cache.CacheManager cacheManager) |
| Modifier and Type | Method and Description |
|---|---|
SessionDataCache |
createSessionDataCache(SessionDataCacheConfiguration configuration)
Creates a
SessionDataCache with the specified configuration. |
getAtlassianCacheSessionDataCache, getGuavaSessionDataCache@Inject
public DarkFeatureDrivenSessionDataCacheFactory(com.atlassian.sal.api.features.DarkFeatureManager darkFeatureManager,
com.atlassian.cache.CacheManager cacheManager)
public SessionDataCache createSessionDataCache(SessionDataCacheConfiguration configuration)
SessionDataCacheFactorySessionDataCache with the specified configuration.configuration - the configuration for the session data cacheSessionDataCache instanceCopyright © 2023 Atlassian. All rights reserved.