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
Modifier and TypeClassDescriptionstatic class
Clustered dedicated configuration.static class
Clustered shared configuration.static class
Disk tier configuration options.static class
Heap tier configuration properties.static class
Off-heap configuration options. -
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionorg.ehcache.config.builders.CacheConfigurationBuilder<?,
?> getDisk()
getHeap()
Class<?>
@NonNull String
getName()
Class<?>
void
setBuilder
(org.ehcache.config.builders.CacheConfigurationBuilder builder) void
setClusteredDedicated
(EhcacheConfiguration.ClusteredDedicatedResourcePoolConfiguration clusteredDedicated) void
void
void
void
setKeyType
(Class<?> keyType) void
void
setValueType
(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:
getName
in 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
-