@EachProperty(value="ehcache.caches") public class EhcacheConfiguration extends Object implements io.micronaut.core.naming.Named
CacheConfigurationBuilder
Modifier and Type | Class and Description |
---|---|
static class |
EhcacheConfiguration.ClusteredDedicatedResourcePoolConfiguration
Clustered dedicated configuration.
|
static class |
EhcacheConfiguration.ClusteredSharedResourcePoolConfiguration
Clustered shared configuration.
|
static class |
EhcacheConfiguration.DiskTieredCacheConfiguration
Disk tier configuration options.
|
static class |
EhcacheConfiguration.HeapTieredCacheConfiguration
Heap tier configuration properties.
|
static class |
EhcacheConfiguration.OffheapTieredCacheConfiguration
Off-heap configuration options.
|
Modifier and Type | Field and Description |
---|---|
static Class<?> |
DEFAULT_KEY_TYPE |
static Long |
DEFAULT_MAX_ENTRIES |
static Class<?> |
DEFAULT_VALUE_TYPE |
static String |
PREFIX |
Constructor and Description |
---|
EhcacheConfiguration(String name) |
public static final String PREFIX
public static final Class<?> DEFAULT_KEY_TYPE
public static final Class<?> DEFAULT_VALUE_TYPE
public static final Long DEFAULT_MAX_ENTRIES
public EhcacheConfiguration(@Parameter String name)
name
- the cache namepublic org.ehcache.config.builders.CacheConfigurationBuilder<?,?> getBuilder()
public void setBuilder(org.ehcache.config.builders.CacheConfigurationBuilder builder)
builder
- The cache configuration builder@NonNull public String getName()
getName
in interface io.micronaut.core.naming.Named
public Class<?> getKeyType()
public void setKeyType(Class<?> keyType)
keyType
- The type of the keys in the cachepublic Class<?> getValueType()
public void setValueType(Class<?> valueType)
valueType
- The type of the values in the cachepublic EhcacheConfiguration.HeapTieredCacheConfiguration getHeap()
public void setHeap(EhcacheConfiguration.HeapTieredCacheConfiguration heap)
heap
- the heap tier configurationpublic EhcacheConfiguration.OffheapTieredCacheConfiguration getOffheap()
public void setOffheap(EhcacheConfiguration.OffheapTieredCacheConfiguration offheap)
offheap
- the off-heap configurationpublic EhcacheConfiguration.DiskTieredCacheConfiguration getDisk()
public void setDisk(EhcacheConfiguration.DiskTieredCacheConfiguration disk)
disk
- the disk tier configurationpublic EhcacheConfiguration.ClusteredDedicatedResourcePoolConfiguration getClusteredDedicated()
public void setClusteredDedicated(EhcacheConfiguration.ClusteredDedicatedResourcePoolConfiguration clusteredDedicated)
clusteredDedicated
- the clustered dedicated configurationpublic EhcacheConfiguration.ClusteredSharedResourcePoolConfiguration getClusteredShared()
public void setClusteredShared(EhcacheConfiguration.ClusteredSharedResourcePoolConfiguration clusteredShared)
clusteredShared
- the clustered shared configuration