Class EhcacheCacheManagerConfiguration

java.lang.Object
io.micronaut.cache.ehcache.configuration.EhcacheCacheManagerConfiguration

@ConfigurationProperties("ehcache") public class EhcacheCacheManagerConfiguration extends Object
Configuration class for the Ehcache CacheManager.
Since:
1.0.0
Author:
Álvaro Sánchez-Mariscal
See Also:
  • CacheManagerBuilder
  • Field Details

  • Constructor Details

    • EhcacheCacheManagerConfiguration

      public EhcacheCacheManagerConfiguration(List<EhcacheClusterResourcePoolConfiguration> resourcePoolConfigurations)
      Parameters:
      resourcePoolConfigurations - the resource pool configurations
  • Method Details

    • getBuilder

      public org.ehcache.config.builders.CacheManagerBuilder getBuilder()
      Returns:
      the configuration builder
    • setBuilder

      public void setBuilder(org.ehcache.config.builders.CacheManagerBuilder builder)
      Parameters:
      builder - the configuration builder
    • getDefaultSizeOfMaxObjectSize

      public Long getDefaultSizeOfMaxObjectSize()
      Returns:
      the default maximum size of the largest object in the cache
    • setDefaultSizeOfMaxObjectSize

      public void setDefaultSizeOfMaxObjectSize(@ReadableBytes Long defaultSizeOfMaxObjectSize)
      Parameters:
      defaultSizeOfMaxObjectSize - the default maximum size of the largest object in the cache
    • getStoragePath

      public String getStoragePath()
      Returns:
      the storage path in the file system
    • setStoragePath

      public void setStoragePath(String storagePath)
      Parameters:
      storagePath - the storage path in the file system
    • getCluster

      Returns:
      the cluster configuration
    • setCluster

      Parameters:
      cluster - the cluster configuration