Top Description Fields Constructors Methods
org.hibernate.stat.internal

public Class CacheRegionStatisticsImpl

extends Object
implements CacheRegionStatistics, Serializable
Class Inheritance
All Implemented Interfaces
java.io.Serializable, org.hibernate.stat.CacheRegionStatistics
Imports
java.io.Serializable, java.util.concurrent.atomic.LongAdder, org.hibernate.cache.spi.ExtendedStatisticsSupport, .Region, org.hibernate.stat.CacheRegionStatistics

Second level cache statistics of a specific region
Author
Alex Snaps

Field Summary

Modifier and TypeField and Description
private final LongAdder
private final LongAdder
private final LongAdder
private final transient Region

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
public long
getElementCountInMemory()

Implements org.hibernate.stat.CacheRegionStatistics.getElementCountInMemory.

The number of elements currently in memory within the cache provider.
public long
getElementCountOnDisk()

Implements org.hibernate.stat.CacheRegionStatistics.getElementCountOnDisk.

The number of elements currently stored to disk within the cache provider.
public long
getHitCount()

Implements org.hibernate.stat.CacheRegionStatistics.getHitCount.

The number of successful cache look-ups against the region since the last Statistics clearing
public long
getMissCount()

Implements org.hibernate.stat.CacheRegionStatistics.getMissCount.

The number of unsuccessful cache look-ups against the region since the last Statistics clearing
public long
getPutCount()

Implements org.hibernate.stat.CacheRegionStatistics.getPutCount.

The number of cache puts into the region since the last Statistics clearing
public String
public long
getSizeInMemory()

Implements org.hibernate.stat.CacheRegionStatistics.getSizeInMemory.

The size that the in-memory elements take up within the cache provider.
pack-priv void
pack-priv void
pack-priv void
public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAllwaitwaitwait

Field Detail

hitCountback to summary
private final LongAdder hitCount
missCountback to summary
private final LongAdder missCount
putCountback to summary
private final LongAdder putCount
regionback to summary
private final transient Region region

Constructor Detail

CacheRegionStatisticsImplback to summary
pack-priv CacheRegionStatisticsImpl(Region region)

Method Detail

getElementCountInMemoryback to summary
public long getElementCountInMemory()

Implements org.hibernate.stat.CacheRegionStatistics.getElementCountInMemory.

Doc from org.hibernate.stat.CacheRegionStatistics.getElementCountInMemory.

The number of elements currently in memory within the cache provider.

This is an optional value contingent upon the underlying cache provider providing extended stats support via org.hibernate.cache.spi.ExtendedStatisticsSupport. If the provider does not support extended stats, NO_EXTENDED_STAT_SUPPORT_RETURN is returned instead.

Annotations
@Override
getElementCountOnDiskback to summary
public long getElementCountOnDisk()

Implements org.hibernate.stat.CacheRegionStatistics.getElementCountOnDisk.

Doc from org.hibernate.stat.CacheRegionStatistics.getElementCountOnDisk.

The number of elements currently stored to disk within the cache provider.

This is an optional value contingent upon the underlying cache provider providing extended stats support via org.hibernate.cache.spi.ExtendedStatisticsSupport. If the provider does not support extended stats, NO_EXTENDED_STAT_SUPPORT_RETURN is returned instead.

Annotations
@Override
getHitCountback to summary
public long getHitCount()

Implements org.hibernate.stat.CacheRegionStatistics.getHitCount.

Doc from org.hibernate.stat.CacheRegionStatistics.getHitCount.

The number of successful cache look-ups against the region since the last Statistics clearing

Annotations
@Override
getMissCountback to summary
public long getMissCount()

Implements org.hibernate.stat.CacheRegionStatistics.getMissCount.

Doc from org.hibernate.stat.CacheRegionStatistics.getMissCount.

The number of unsuccessful cache look-ups against the region since the last Statistics clearing

Annotations
@Override
getPutCountback to summary
public long getPutCount()

Implements org.hibernate.stat.CacheRegionStatistics.getPutCount.

Doc from org.hibernate.stat.CacheRegionStatistics.getPutCount.

The number of cache puts into the region since the last Statistics clearing

Annotations
@Override
getRegionNameback to summary
public String getRegionName()

Implements org.hibernate.stat.CacheRegionStatistics.getRegionName.

Annotations
@Override
getSizeInMemoryback to summary
public long getSizeInMemory()

Implements org.hibernate.stat.CacheRegionStatistics.getSizeInMemory.

Doc from org.hibernate.stat.CacheRegionStatistics.getSizeInMemory.

The size that the in-memory elements take up within the cache provider.

This is an optional value contingent upon the underlying cache provider providing extended stats support via org.hibernate.cache.spi.ExtendedStatisticsSupport. If the provider does not support extended stats, NO_EXTENDED_STAT_SUPPORT_RETURN is returned instead.

Annotations
@Override
incrementHitCountback to summary
pack-priv void incrementHitCount()
incrementMissCountback to summary
pack-priv void incrementMissCount()
incrementPutCountback to summary
pack-priv void incrementPutCount()
toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object.

Returns:String

a string representation of the object.

Annotations
@Override