@ConfigurationProperties(value="ehcache")
public class EhcacheCacheManagerConfiguration
extends java.lang.Object
CacheManager
.CacheManagerBuilder
Modifier and Type | Class and Description |
---|---|
static class |
EhcacheCacheManagerConfiguration.EhcacheClusterConfiguration
Clustering configuration.
|
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
PREFIX |
Constructor and Description |
---|
EhcacheCacheManagerConfiguration(java.util.List<EhcacheClusterResourcePoolConfiguration> resourcePoolConfigurations) |
Modifier and Type | Method and Description |
---|---|
org.ehcache.config.builders.CacheManagerBuilder |
getBuilder() |
EhcacheCacheManagerConfiguration.EhcacheClusterConfiguration |
getCluster() |
java.lang.Long |
getDefaultSizeOfMaxObjectSize() |
java.lang.String |
getStoragePath() |
void |
setBuilder(org.ehcache.config.builders.CacheManagerBuilder builder) |
void |
setCluster(EhcacheCacheManagerConfiguration.EhcacheClusterConfiguration cluster) |
void |
setDefaultSizeOfMaxObjectSize(java.lang.Long defaultSizeOfMaxObjectSize) |
void |
setStoragePath(java.lang.String storagePath) |
public static final java.lang.String PREFIX
public EhcacheCacheManagerConfiguration(java.util.List<EhcacheClusterResourcePoolConfiguration> resourcePoolConfigurations)
resourcePoolConfigurations
- the resource pool configurationspublic org.ehcache.config.builders.CacheManagerBuilder getBuilder()
public void setBuilder(org.ehcache.config.builders.CacheManagerBuilder builder)
builder
- the configuration builderpublic java.lang.Long getDefaultSizeOfMaxObjectSize()
public void setDefaultSizeOfMaxObjectSize(@ReadableBytes java.lang.Long defaultSizeOfMaxObjectSize)
defaultSizeOfMaxObjectSize
- the default maximum size of the largest object in the cachepublic java.lang.String getStoragePath()
public void setStoragePath(java.lang.String storagePath)
storagePath
- the storage path in the file systempublic EhcacheCacheManagerConfiguration.EhcacheClusterConfiguration getCluster()
public void setCluster(EhcacheCacheManagerConfiguration.EhcacheClusterConfiguration cluster)
cluster
- the cluster configuration