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 Summary
Nested 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 Summary
Fields - 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionorg.ehcache.config.builders.CacheConfigurationBuilder<?,?> getDisk()getHeap()Class<?>getName()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
- 
getBuilder
public org.ehcache.config.builders.CacheConfigurationBuilder<?,?> getBuilder()- Returns:
 - the configuration builder
 
 - 
setBuilder
public void setBuilder(org.ehcache.config.builders.CacheConfigurationBuilder builder) - Parameters:
 builder- The cache configuration builder
 - 
getName
- Specified by:
 getNamein interfaceio.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
 
 - 
setClusteredDedicated
public void setClusteredDedicated(EhcacheConfiguration.ClusteredDedicatedResourcePoolConfiguration clusteredDedicated) - Parameters:
 clusteredDedicated- the clustered dedicated configuration
 
 -