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