Class CaffeineProperties

java.lang.Object
com.broadleafcommerce.common.extension.cache.caffeine.CaffeineProperties

@ConfigurationProperties(prefix="broadleaf.cache.caffeine") public class CaffeineProperties extends Object
Configuration properties for Caffeine cache.
  • Constructor Details

    • CaffeineProperties

      public CaffeineProperties()
  • Method Details

    • getHeap

      public org.springframework.util.unit.DataSize getHeap()
      The maximum size of the on-heap tier in megabytes for all caches running in this JVM.
      Since:
      2.0.7
    • isMetricsCollectionEnabled

      public boolean isMetricsCollectionEnabled()
      A global "kill switch" for the Micrometer integration. When enabled, basic metadata such as cache size will be exported to the Micrometer registry. This provides visibility into the cache's footprint with negligible overhead. True by default.
      Since:
      2.0.7
    • isCacheStatisticsEnabled

      public boolean isCacheStatisticsEnabled()
      Toggles the tracking of high-level throughput metrics (hits, misses, evictions). When enabled, Caffeine will engage its internal StatsCounter. While providing valuable performance insights, this adds a small amount of overhead to every cache operation. This setting only takes effect if isMetricsCollectionEnabled() is true. True by default.
      Since:
      2.0.7
    • setHeap

      public void setHeap(org.springframework.util.unit.DataSize heap)
      The maximum size of the on-heap tier in megabytes for all caches running in this JVM.
      Since:
      2.0.7
    • setMetricsCollectionEnabled

      public void setMetricsCollectionEnabled(boolean metricsCollectionEnabled)
      A global "kill switch" for the Micrometer integration. When enabled, basic metadata such as cache size will be exported to the Micrometer registry. This provides visibility into the cache's footprint with negligible overhead. True by default.
      Since:
      2.0.7
    • setCacheStatisticsEnabled

      public void setCacheStatisticsEnabled(boolean cacheStatisticsEnabled)
      Toggles the tracking of high-level throughput metrics (hits, misses, evictions). When enabled, Caffeine will engage its internal StatsCounter. While providing valuable performance insights, this adds a small amount of overhead to every cache operation. This setting only takes effect if isMetricsCollectionEnabled() is true. True by default.
      Since:
      2.0.7
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • canEqual

      protected boolean canEqual(Object other)
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object