Class EhcacheCacheManagerConfiguration
java.lang.Object
io.micronaut.cache.ehcache.configuration.EhcacheCacheManagerConfiguration
Configuration class for the Ehcache
CacheManager
.- Since:
- 1.0.0
- Author:
- Álvaro Sánchez-Mariscal
- See Also:
-
CacheManagerBuilder
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Clustering configuration. -
Field Summary
-
Constructor Summary
ConstructorDescriptionEhcacheCacheManagerConfiguration
(List<EhcacheClusterResourcePoolConfiguration> resourcePoolConfigurations) -
Method Summary
Modifier and TypeMethodDescriptionorg.ehcache.config.builders.CacheManagerBuilder
void
setBuilder
(org.ehcache.config.builders.CacheManagerBuilder builder) void
void
setDefaultSizeOfMaxObjectSize
(Long defaultSizeOfMaxObjectSize) void
setStoragePath
(String storagePath)
-
Field Details
-
PREFIX
- See Also:
-
-
Constructor Details
-
EhcacheCacheManagerConfiguration
public EhcacheCacheManagerConfiguration(List<EhcacheClusterResourcePoolConfiguration> resourcePoolConfigurations) - Parameters:
resourcePoolConfigurations
- the resource pool configurations
-
-
Method Details
-
getBuilder
public org.ehcache.config.builders.CacheManagerBuilder getBuilder()- Returns:
- the configuration builder
-
setBuilder
public void setBuilder(org.ehcache.config.builders.CacheManagerBuilder builder) - Parameters:
builder
- the configuration builder
-
getDefaultSizeOfMaxObjectSize
- Returns:
- the default maximum size of the largest object in the cache
-
setDefaultSizeOfMaxObjectSize
- Parameters:
defaultSizeOfMaxObjectSize
- the default maximum size of the largest object in the cache
-
getStoragePath
- Returns:
- the storage path in the file system
-
setStoragePath
- Parameters:
storagePath
- the storage path in the file system
-
getCluster
- Returns:
- the cluster configuration
-
setCluster
- Parameters:
cluster
- the cluster configuration
-