@Service(value="blJCacheConfigurationBuilder") @ConditionalOnEhCacheMissing public class DefaultJCacheConfigurationBuilder extends Object implements JCacheConfigurationBuilder
Constructor and Description |
---|
DefaultJCacheConfigurationBuilder() |
Modifier and Type | Method and Description |
---|---|
<K,V> javax.cache.configuration.Configuration<K,V> |
buildConfiguration(int ttlSeconds,
int maxElementsInMemory,
Class<K> keyClass,
Class<V> valueClass)
Similar to
JCacheConfigurationBuilder.buildConfiguration(JCacheRegionConfiguration) however it requires more specifc arguments. |
javax.cache.configuration.Configuration |
buildConfiguration(JCacheRegionConfiguration regionInformation)
Given a
JCacheRegionConfiguration build the appropriate Configuration class
The purpose of this method is to allow for extensibility and customization when using specific JCache implementations since most
support more configuration than the JSR-107 spec allows |
public javax.cache.configuration.Configuration buildConfiguration(JCacheRegionConfiguration regionInformation)
JCacheConfigurationBuilder
JCacheRegionConfiguration
build the appropriate Configuration
class
The purpose of this method is to allow for extensibility and customization when using specific JCache implementations since most
support more configuration than the JSR-107 spec allowsbuildConfiguration
in interface JCacheConfigurationBuilder
regionInformation
- The JCacheRegionConfiguration
to use to build the Configuration
Configuration
public <K,V> javax.cache.configuration.Configuration<K,V> buildConfiguration(int ttlSeconds, int maxElementsInMemory, Class<K> keyClass, Class<V> valueClass)
JCacheConfigurationBuilder
JCacheConfigurationBuilder.buildConfiguration(JCacheRegionConfiguration)
however it requires more specifc arguments.
The purpose of this method was for internal Broadleaf usages where we're sending the exact argumentsbuildConfiguration
in interface JCacheConfigurationBuilder
K
- The key class of the Configuration
V
- The value class of the Configuration
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 the Configuration
valueClass
- The value class of the Configuration
Copyright © 2022. All rights reserved.