Class NotificationCaffeineAutoConfiguration
java.lang.Object
com.broadleafcommerce.notification.service.autoconfigure.NotificationCaffeineAutoConfiguration
@Configuration
@Conditional(com.broadleafcommerce.common.extension.cache.condition.OnEnabledCacheCondition.class)
@ConditionalOnClass(org.springframework.cache.caffeine.CaffeineCacheManager.class)
@ConditionalOnProperty(value="com.broadleafcommerce.cache.activeCacheManagerImplementation",
havingValue="com.broadleafcommerce.common.extension.cache.caffeine.CaffeineAutoConfiguration")
@AutoConfigureAfter(com.broadleafcommerce.common.extension.cache.caffeine.CaffeineAutoConfiguration.class)
@EnableConfigurationProperties({NotificationCacheProperties.class,NotificationCacheWeightProperties.class})
public class NotificationCaffeineAutoConfiguration
extends Object
Auto-configuration for notification caching using Caffeine as the underlying cache
implementation.
- Author:
- Jeff Fischer
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.boot.autoconfigure.cache.CacheManagerCustomizer<org.springframework.cache.caffeine.CaffeineCacheManager>notificationCaffeineManagerCustomizer(com.broadleafcommerce.common.extension.cache.caffeine.CaffeineBudgetManager budgetManager, NotificationCacheProperties props, NotificationCacheWeightProperties weightProps)
-
Constructor Details
-
NotificationCaffeineAutoConfiguration
public NotificationCaffeineAutoConfiguration()
-
-
Method Details
-
notificationCaffeineManagerCustomizer
@Bean @ConditionalOnMissingBean(name="notificationCaffeineManagerCustomizer") public org.springframework.boot.autoconfigure.cache.CacheManagerCustomizer<org.springframework.cache.caffeine.CaffeineCacheManager> notificationCaffeineManagerCustomizer(com.broadleafcommerce.common.extension.cache.caffeine.CaffeineBudgetManager budgetManager, NotificationCacheProperties props, NotificationCacheWeightProperties weightProps)
-