Top Fields Constructors Methods
org.hibernate.stat.internal

public abstract Class AbstractCacheableDataStatistics

extends Object
implements CacheableDataStatistics
Class Inheritance
All Implemented Interfaces
org.hibernate.stat.CacheableDataStatistics, java.io.Serializable
Known Direct Subclasses
org.hibernate.stat.internal.CollectionStatisticsImpl, org.hibernate.stat.internal.EntityStatisticsImpl, org.hibernate.stat.internal.NaturalIdStatisticsImpl
Imports
java.util.concurrent.atomic.LongAdder, java.util.function.Supplier, org.hibernate.cache.spi.Region, org.hibernate.stat.CacheableDataStatistics

Author
Steve Ebersole

Field Summary

Modifier and TypeField and Description
private final LongAdder
private final LongAdder
private final LongAdder
private final String

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
protected void
public long
getCacheHitCount()

Implements org.hibernate.stat.CacheableDataStatistics.getCacheHitCount.

The number of successful cache look-ups for this data from its configured cache region since the last Statistics clearing
public long
getCacheMissCount()

Implements org.hibernate.stat.CacheableDataStatistics.getCacheMissCount.

The number of unsuccessful cache look-ups for this data from its configured cache region since the last Statistics clearing
public long
getCachePutCount()

Implements org.hibernate.stat.CacheableDataStatistics.getCachePutCount.

The number of times this data has been into its configured cache region since the last Statistics clearing
public String
getCacheRegionName()

Implements org.hibernate.stat.CacheableDataStatistics.getCacheRegionName.

The name of the region where this data is cached.
public void
public void
public void
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

cacheHitCountback to summary
private final LongAdder cacheHitCount
cacheMissCountback to summary
private final LongAdder cacheMissCount
cachePutCountback to summary
private final LongAdder cachePutCount
cacheRegionNameback to summary
private final String cacheRegionName

Constructor Detail

AbstractCacheableDataStatisticsback to summary
public AbstractCacheableDataStatistics(Supplier<Region> regionSupplier)

Method Detail

appendCacheStatsback to summary
protected void appendCacheStats(StringBuilder buf)
getCacheHitCountback to summary
public long getCacheHitCount()

Implements org.hibernate.stat.CacheableDataStatistics.getCacheHitCount.

Doc from org.hibernate.stat.CacheableDataStatistics.getCacheHitCount.

The number of successful cache look-ups for this data from its configured cache region since the last Statistics clearing

getCacheMissCountback to summary
public long getCacheMissCount()

Implements org.hibernate.stat.CacheableDataStatistics.getCacheMissCount.

Doc from org.hibernate.stat.CacheableDataStatistics.getCacheMissCount.

The number of unsuccessful cache look-ups for this data from its configured cache region since the last Statistics clearing

getCachePutCountback to summary
public long getCachePutCount()

Implements org.hibernate.stat.CacheableDataStatistics.getCachePutCount.

Doc from org.hibernate.stat.CacheableDataStatistics.getCachePutCount.

The number of times this data has been into its configured cache region since the last Statistics clearing

getCacheRegionNameback to summary
public String getCacheRegionName()

Implements org.hibernate.stat.CacheableDataStatistics.getCacheRegionName.

Doc from org.hibernate.stat.CacheableDataStatistics.getCacheRegionName.

The name of the region where this data is cached.

Annotations
@Override
incrementCacheHitCountback to summary
public void incrementCacheHitCount()
incrementCacheMissCountback to summary
public void incrementCacheMissCount()
incrementCachePutCountback to summary
public void incrementCachePutCount()