Class AbstractCacheableDataStatistics

java.lang.Object
org.hibernate.stat.internal.AbstractCacheableDataStatistics
All Implemented Interfaces:
Serializable, CacheableDataStatistics
Direct Known Subclasses:
CollectionStatisticsImpl, EntityStatisticsImpl, NaturalIdStatisticsImpl

public abstract class AbstractCacheableDataStatistics extends Object implements CacheableDataStatistics
See Also:
  • Constructor Details

    • AbstractCacheableDataStatistics

      public AbstractCacheableDataStatistics(Supplier<@Nullable Region> regionSupplier)
  • Method Details

    • getCacheRegionName

      public @Nullable String getCacheRegionName()
      Description copied from interface: CacheableDataStatistics
      The name of the region where this data is cached.
      Specified by:
      getCacheRegionName in interface CacheableDataStatistics
    • getCacheHitCount

      public long getCacheHitCount()
      Description copied from interface: CacheableDataStatistics
      The number of successful cache look-ups for this data from its configured cache region since the last Statistics clearing
      Specified by:
      getCacheHitCount in interface CacheableDataStatistics
    • getCachePutCount

      public long getCachePutCount()
      Description copied from interface: CacheableDataStatistics
      The number of times this data has been into its configured cache region since the last Statistics clearing
      Specified by:
      getCachePutCount in interface CacheableDataStatistics
    • getCacheMissCount

      public long getCacheMissCount()
      Description copied from interface: CacheableDataStatistics
      The number of unsuccessful cache look-ups for this data from its configured cache region since the last Statistics clearing
      Specified by:
      getCacheMissCount in interface CacheableDataStatistics
    • incrementCacheHitCount

      public void incrementCacheHitCount()
    • incrementCacheMissCount

      public void incrementCacheMissCount()
    • incrementCachePutCount

      public void incrementCachePutCount()
    • appendCacheStats

      protected void appendCacheStats(StringBuilder buf)