Package org.hibernate.stat.internal
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:
- Serialized Form
-
-
Field Summary
-
Fields inherited from interface org.hibernate.stat.CacheableDataStatistics
NOT_CACHED_COUNT
-
-
Constructor Summary
Constructors Constructor Description AbstractCacheableDataStatistics(Supplier<Region> regionSupplier)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
appendCacheStats(StringBuilder buf)
long
getCacheHitCount()
The number of successful cache look-ups for this data from its configured cache region since the last Statistics clearinglong
getCacheMissCount()
The number of unsuccessful cache look-ups for this data from its configured cache region since the last Statistics clearinglong
getCachePutCount()
The number of times this data has been into its configured cache region since the last Statistics clearingString
getCacheRegionName()
The name of the region where this data is cached.void
incrementCacheHitCount()
void
incrementCacheMissCount()
void
incrementCachePutCount()
-
-
-
Method Detail
-
getCacheRegionName
public String getCacheRegionName()
Description copied from interface:CacheableDataStatistics
The name of the region where this data is cached.- Specified by:
getCacheRegionName
in interfaceCacheableDataStatistics
-
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 interfaceCacheableDataStatistics
-
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 interfaceCacheableDataStatistics
-
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 interfaceCacheableDataStatistics
-
incrementCacheHitCount
public void incrementCacheHitCount()
-
incrementCacheMissCount
public void incrementCacheMissCount()
-
incrementCachePutCount
public void incrementCachePutCount()
-
appendCacheStats
protected void appendCacheStats(StringBuilder buf)
-
-