Interface JCacheConfigurationBuilder
- All Known Implementing Classes:
DefaultEhCacheConfigurationBuilder
,DefaultJCacheConfigurationBuilder
public interface JCacheConfigurationBuilder
Helper class for building
Configuration
classes- Author:
- Jay Aisenbrey (cja769)
-
Method Summary
Modifier and TypeMethodDescription<K,
V> javax.cache.configuration.Configuration<K, V> buildConfiguration
(int ttlSeconds, int maxElementsInMemory, Class<K> keyClass, Class<V> valueClass) Deprecated.javax.cache.configuration.Configuration
buildConfiguration
(JCacheRegionConfiguration regionInformation) Given aJCacheRegionConfiguration
build the appropriateConfiguration
class
-
Method Details
-
buildConfiguration
javax.cache.configuration.Configuration buildConfiguration(JCacheRegionConfiguration regionInformation) Given aJCacheRegionConfiguration
build the appropriateConfiguration
classThe 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
- Parameters:
regionInformation
- TheJCacheRegionConfiguration
to use to build theConfiguration
- Returns:
- The
Configuration
-
buildConfiguration
@Deprecated <K,V> javax.cache.configuration.Configuration<K,V> buildConfiguration(int ttlSeconds, int maxElementsInMemory, Class<K> keyClass, Class<V> valueClass) Deprecated.usebuildConfiguration(JCacheRegionConfiguration)
as this will be removed in the futureSimilar tobuildConfiguration(JCacheRegionConfiguration)
however it requires more specifc arguments.The purpose of this method was for internal Broadleaf usages where we're sending the exact arguments
- Type Parameters:
K
- The key class of theConfiguration
V
- 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 theConfiguration
valueClass
- The value class of theConfiguration
- Returns:
-
buildConfiguration(JCacheRegionConfiguration)
as this will be removed in the future