Class EhcacheConfiguration
java.lang.Object
io.micronaut.cache.ehcache.configuration.EhcacheConfiguration
- All Implemented Interfaces:
- io.micronaut.core.naming.Named
@EachProperty("ehcache.caches")
public class EhcacheConfiguration
extends Object
implements io.micronaut.core.naming.Named
Configuration class for an Ehacahe-based cache.
- Since:
- 1.0.0
- Author:
- Álvaro Sánchez-Mariscal
- See Also:
- 
- CacheConfigurationBuilder
 
- 
Nested Class SummaryNested ClassesModifier and TypeClassDescriptionstatic classClustered dedicated configuration.static classClustered shared configuration.static classDisk tier configuration options.static classHeap tier configuration properties.static classOff-heap configuration options.
- 
Field SummaryFields
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionorg.ehcache.config.builders.CacheConfigurationBuilder<?,?> getDisk()getHeap()Class<?>@NonNull StringgetName()Class<?>voidsetBuilder(org.ehcache.config.builders.CacheConfigurationBuilder builder) voidsetClusteredDedicated(EhcacheConfiguration.ClusteredDedicatedResourcePoolConfiguration clusteredDedicated) voidvoidvoidvoidsetKeyType(Class<?> keyType) voidvoidsetValueType(Class<?> valueType) 
- 
Field Details- 
PREFIX- See Also:
 
- 
DEFAULT_KEY_TYPE
- 
DEFAULT_VALUE_TYPE
- 
DEFAULT_MAX_ENTRIES
 
- 
- 
Constructor Details- 
EhcacheConfiguration- Parameters:
- name- the cache name
 
 
- 
- 
Method Details- 
getBuilderpublic org.ehcache.config.builders.CacheConfigurationBuilder<?,?> getBuilder()- Returns:
- the configuration builder
 
- 
setBuilderpublic void setBuilder(org.ehcache.config.builders.CacheConfigurationBuilder builder) - Parameters:
- builder- The cache configuration builder
 
- 
getName- Specified by:
- getNamein interface- io.micronaut.core.naming.Named
 
- 
getKeyType- Returns:
- The type of the keys in the cache
 
- 
setKeyType- Parameters:
- keyType- The type of the keys in the cache
 
- 
getValueType- Returns:
- The type of the values in the cache
 
- 
setValueType- Parameters:
- valueType- The type of the values in the cache
 
- 
getHeap- Returns:
- the heap tier configuration
 
- 
setHeap- Parameters:
- heap- the heap tier configuration
 
- 
getOffheap- Returns:
- the off-heap configuration
 
- 
setOffheap- Parameters:
- offheap- the off-heap configuration
 
- 
getDisk- Returns:
- the disk tier configuration
 
- 
setDisk- Parameters:
- disk- the disk tier configuration
 
- 
getClusteredDedicated- Returns:
- the clustered dedicated configuration
 
- 
setClusteredDedicatedpublic void setClusteredDedicated(EhcacheConfiguration.ClusteredDedicatedResourcePoolConfiguration clusteredDedicated) - Parameters:
- clusteredDedicated- the clustered dedicated configuration
 
 
-