public class JCacheRegionConfiguration extends Object
configuration
is set then it will be used to create the region otherwise the other properties will be used.
If this class is subclassed then JCacheConfigurationBuilder
will likely also need to be overridden in order to utilize any new properties.
By default instances of this class are defined in Broadleaf to set the default configuration for known cache regions. If you would like to override
cache regions using this DTO when targeting ehcache then set the property jcache.create.cache.forceJavaConfig to true. When targeting any other jcache
implementation simply create an instance of this DTO for each new region or region override as a bean.Modifier and Type | Field and Description |
---|---|
protected String |
cacheName |
protected javax.cache.configuration.Configuration<?,?> |
configuration |
protected Boolean |
enableManagement |
protected Boolean |
enableStatistics |
protected Class<?> |
key |
protected int |
maxElementsInMemory |
protected int |
ttlSeconds |
protected Class<?> |
value |
Constructor and Description |
---|
JCacheRegionConfiguration(String cacheName) |
JCacheRegionConfiguration(String cacheName,
javax.cache.configuration.Configuration<?,?> configuration) |
JCacheRegionConfiguration(String cacheName,
int ttlSeconds,
int maxElementsInMemory) |
JCacheRegionConfiguration(String cacheName,
int ttlSeconds,
int maxElementsInMemory,
Class<?> key,
Class<?> value) |
JCacheRegionConfiguration(String cacheName,
int ttlSeconds,
int maxElementsInMemory,
Class<?> key,
Class<?> value,
Boolean enableManagement,
Boolean enableStatistics) |
Modifier and Type | Method and Description |
---|---|
String |
getCacheName() |
javax.cache.configuration.Configuration<?,?> |
getConfiguration() |
Boolean |
getEnableManagement() |
Boolean |
getEnableStatistics() |
Class<?> |
getKey() |
int |
getMaxElementsInMemory() |
int |
getTtlSeconds() |
Class<?> |
getValue() |
void |
setCacheName(String cacheName) |
void |
setConfiguration(javax.cache.configuration.Configuration<?,?> configuration) |
void |
setEnableManagement(Boolean enableManagement) |
void |
setEnableStatistics(Boolean enableStatistics) |
void |
setKey(Class<?> key) |
void |
setMaxElementsInMemory(int maxElementsInMemory) |
void |
setTtlSeconds(int ttlSeconds) |
void |
setValue(Class<?> value) |
protected String cacheName
protected int ttlSeconds
protected int maxElementsInMemory
protected Class<?> key
protected Class<?> value
protected Boolean enableManagement
protected Boolean enableStatistics
protected javax.cache.configuration.Configuration<?,?> configuration
public JCacheRegionConfiguration(String cacheName, int ttlSeconds, int maxElementsInMemory, Class<?> key, Class<?> value, Boolean enableManagement, Boolean enableStatistics)
public JCacheRegionConfiguration(String cacheName, int ttlSeconds, int maxElementsInMemory, Class<?> key, Class<?> value)
public JCacheRegionConfiguration(String cacheName, int ttlSeconds, int maxElementsInMemory)
public JCacheRegionConfiguration(String cacheName)
public JCacheRegionConfiguration(String cacheName, javax.cache.configuration.Configuration<?,?> configuration)
public String getCacheName()
public void setCacheName(String cacheName)
public int getTtlSeconds()
public void setTtlSeconds(int ttlSeconds)
public int getMaxElementsInMemory()
public void setMaxElementsInMemory(int maxElementsInMemory)
public Class<?> getKey()
public void setKey(Class<?> key)
public Class<?> getValue()
public void setValue(Class<?> value)
public Boolean getEnableManagement()
public void setEnableManagement(Boolean enableManagement)
public Boolean getEnableStatistics()
public void setEnableStatistics(Boolean enableStatistics)
public javax.cache.configuration.Configuration<?,?> getConfiguration()
public void setConfiguration(javax.cache.configuration.Configuration<?,?> configuration)
Copyright © 2022. All rights reserved.