Class DefaultEhCacheConfigurationBuilder
java.lang.Object
org.broadleafcommerce.common.extensibility.cache.DefaultJCacheConfigurationBuilder
org.broadleafcommerce.common.extensibility.cache.ehcache.DefaultEhCacheConfigurationBuilder
- All Implemented Interfaces:
JCacheConfigurationBuilder
@Service("blJCacheConfigurationBuilder")
@ConditionalOnEhCache
public class DefaultEhCacheConfigurationBuilder
extends DefaultJCacheConfigurationBuilder
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<K,V> javax.cache.configuration.Configuration<K, V> buildConfiguration(int ttlSeconds, int maxElementsInMemory, Class<K> keyClass, Class<V> valueClass) Similar toJCacheConfigurationBuilder.buildConfiguration(JCacheRegionConfiguration)however it requires more specifc arguments.Methods inherited from class org.broadleafcommerce.common.extensibility.cache.DefaultJCacheConfigurationBuilder
buildConfiguration
-
Constructor Details
-
DefaultEhCacheConfigurationBuilder
public DefaultEhCacheConfigurationBuilder()
-
-
Method Details
-
buildConfiguration
public <K,V> javax.cache.configuration.Configuration<K,V> buildConfiguration(int ttlSeconds, int maxElementsInMemory, Class<K> keyClass, Class<V> valueClass) Description copied from interface:JCacheConfigurationBuilderSimilar toJCacheConfigurationBuilder.buildConfiguration(JCacheRegionConfiguration)however it requires more specifc arguments.The purpose of this method was for internal Broadleaf usages where we're sending the exact arguments
- Specified by:
buildConfigurationin interfaceJCacheConfigurationBuilder- Overrides:
buildConfigurationin classDefaultJCacheConfigurationBuilder- Type Parameters:
K- The key class of theConfigurationV- The value class of theConfiguration- Parameters:
ttlSeconds- The time to live for cache items in secondsmaxElementsInMemory- The maximum number of elments allowed in the cache. Note that in some JCache implementations this is not usedkeyClass- The key class of theConfigurationvalueClass- The value class of theConfiguration- Returns:
-