Class CacheRegionStatisticsImpl
- All Implemented Interfaces:
Serializable,CacheRegionStatistics
- See Also:
-
Field Summary
Fields inherited from interface org.hibernate.stat.CacheRegionStatistics
NO_EXTENDED_STAT_SUPPORT_RETURN -
Method Summary
Modifier and TypeMethodDescriptionlongThe number of elements currently in memory within the cache provider.longThe number of elements currently stored to disk within the cache provider.longThe number of successful cache look-ups against the region since the last Statistics clearinglongThe number of unsuccessful cache look-ups against the region since the last Statistics clearinglongThe number of cache puts into the region since the last Statistics clearinglongThe number of removals since the last Statistics clearinglongThe size that the in-memory elements take up within the cache provider.voidtoString()
-
Method Details
-
getRegionName
- Specified by:
getRegionNamein interfaceCacheRegionStatistics
-
getHitCount
public long getHitCount()Description copied from interface:CacheRegionStatisticsThe number of successful cache look-ups against the region since the last Statistics clearing- Specified by:
getHitCountin interfaceCacheRegionStatistics
-
getMissCount
public long getMissCount()Description copied from interface:CacheRegionStatisticsThe number of unsuccessful cache look-ups against the region since the last Statistics clearing- Specified by:
getMissCountin interfaceCacheRegionStatistics
-
getPutCount
public long getPutCount()Description copied from interface:CacheRegionStatisticsThe number of cache puts into the region since the last Statistics clearing- Specified by:
getPutCountin interfaceCacheRegionStatistics
-
getRemoveCount
public long getRemoveCount()Description copied from interface:CacheRegionStatisticsThe number of removals since the last Statistics clearing- Specified by:
getRemoveCountin interfaceCacheRegionStatistics
-
getElementCountInMemory
public long getElementCountInMemory()Description copied from interface:CacheRegionStatisticsThe 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
ExtendedStatisticsSupport. If the provider does not support extended stats,CacheRegionStatistics.NO_EXTENDED_STAT_SUPPORT_RETURNis returned instead.- Specified by:
getElementCountInMemoryin interfaceCacheRegionStatistics
-
getElementCountOnDisk
public long getElementCountOnDisk()Description copied from interface:CacheRegionStatisticsThe 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
ExtendedStatisticsSupport. If the provider does not support extended stats,CacheRegionStatistics.NO_EXTENDED_STAT_SUPPORT_RETURNis returned instead.- Specified by:
getElementCountOnDiskin interfaceCacheRegionStatistics
-
getSizeInMemory
public long getSizeInMemory()Description copied from interface:CacheRegionStatisticsThe 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
ExtendedStatisticsSupport. If the provider does not support extended stats,CacheRegionStatistics.NO_EXTENDED_STAT_SUPPORT_RETURNis returned instead.- Specified by:
getSizeInMemoryin interfaceCacheRegionStatistics
-
incrementRemoveCount
public void incrementRemoveCount() -
toString
-