Class CacheConfig

  • Direct Known Subclasses:
    CacheConfig

    public class CacheConfig
    extends Object
    CacheConfig bean to help configuring a Google Guava CacheBuilder. This is helpful when using CacheBuilders in blueprint bundles.
    See Also:
    CacheBuilder
    • Constructor Detail

      • CacheConfig

        protected CacheConfig()
      • CacheConfig

        public CacheConfig​(String cacheName)
    • Method Detail

      • getMaximumSize

        public Long getMaximumSize()
      • setMaximumSize

        public void setMaximumSize​(Long maxSize)
      • getExpireAfterWrite

        public Long getExpireAfterWrite()
      • setExpireAfterWrite

        public void setExpireAfterWrite​(Long expireAfterWrite)
      • isRecordStats

        public boolean isRecordStats()
      • setRecordStats

        public void setRecordStats​(boolean recordStats)
      • getExpireAfterRead

        public Long getExpireAfterRead()
      • setExpireAfterRead

        public void setExpireAfterRead​(Long expireAfterRead)
      • getName

        public String getName()
      • setName

        public void setName​(String name)
      • getMetricRegistry

        public com.codahale.metrics.MetricRegistry getMetricRegistry()
      • setMetricRegistry

        public void setMetricRegistry​(com.codahale.metrics.MetricRegistry metricRegistry)
      • isEnabled

        public boolean isEnabled()
      • setEnabled

        public void setEnabled​(boolean enabled)
      • createBuilder

        protected <K,​V> com.google.common.cache.CacheBuilder<K,​V> createBuilder()
      • validate

        public void validate()