@EachProperty(value="ehcache.caches")
public class EhcacheConfiguration
extends java.lang.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 java.lang.Class<?> |
DEFAULT_KEY_TYPE |
static java.lang.Long |
DEFAULT_MAX_ENTRIES |
static java.lang.Class<?> |
DEFAULT_VALUE_TYPE |
static java.lang.String |
PREFIX |
Constructor and Description |
---|
EhcacheConfiguration(java.lang.String name) |
public static final java.lang.String PREFIX
public static final java.lang.Class<?> DEFAULT_KEY_TYPE
public static final java.lang.Class<?> DEFAULT_VALUE_TYPE
public static final java.lang.Long DEFAULT_MAX_ENTRIES
public EhcacheConfiguration(@Parameter java.lang.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 java.lang.String getName()
getName
in interface io.micronaut.core.naming.Named
public java.lang.Class<?> getKeyType()
public void setKeyType(java.lang.Class<?> keyType)
keyType
- The type of the keys in the cachepublic java.lang.Class<?> getValueType()
public void setValueType(java.lang.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