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:
-
Field Summary
Fields inherited from interface org.hibernate.stat.CacheableDataStatistics
NOT_CACHED_COUNT
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected void
long
The number of successful cache look-ups for this data from its configured cache region since the last Statistics clearinglong
The number of unsuccessful cache look-ups for this data from its configured cache region since the last Statistics clearinglong
The number of times this data has been into its configured cache region since the last Statistics clearing@Nullable String
The name of the region where this data is cached.void
void
void
-
Constructor Details
-
AbstractCacheableDataStatistics
-
-
Method Details
-
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
-