Top Fields Constructors Methods
org.hibernate.stat.internal

public Class DeprecatedNaturalIdCacheStatisticsImpl

extends Object
implements NaturalIdCacheStatistics, Serializable
Class Inheritance
All Implemented Interfaces
java.io.Serializable, org.hibernate.stat.NaturalIdCacheStatistics
Annotations
@Deprecated
Imports
java.io.Serializable, java.util.HashSet, .Set, java.util.concurrent.atomic.AtomicLong, java.util.concurrent.locks.Lock, .ReadWriteLock, .ReentrantReadWriteLock, org.hibernate.cache.spi.DomainDataRegion, .ExtendedStatisticsSupport, .Region, org.hibernate.cache.spi.access.NaturalIdDataAccess, org.hibernate.stat.NaturalIdCacheStatistics, .NaturalIdStatistics

Deprecated

(since 5.3) NaturalIdStatistics is preferred over NaturalIdCacheStatistics

Author
Eric Dalquist

Field Summary

Modifier and TypeField and Description
private final transient Set<NaturalIdDataAccess>
private final AtomicLong
private final AtomicLong
private final AtomicLong
private final AtomicLong
private final AtomicLong
private final AtomicLong
private final Lock
private final String
private final AtomicLong
private final Lock

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
public long
public long
public long
getExecutionAvgTime()

Implements org.hibernate.stat.NaturalIdCacheStatistics.getExecutionAvgTime.

average time in ms taken by the execution of this query onto the DB
public long
public long
getExecutionMaxTime()

Implements org.hibernate.stat.NaturalIdCacheStatistics.getExecutionMaxTime.

max time in ms taken by the execution of this query onto the DB
public long
getExecutionMinTime()

Implements org.hibernate.stat.NaturalIdCacheStatistics.getExecutionMinTime.

min time in ms taken by the execution of this query onto the DB
public long
public long
public long
public long
pack-priv void
pack-priv void
pack-priv void
pack-priv void
queryExecuted(long time)

public String
toString()

Overrides java.lang.Object.toString.

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

Field Detail

accessStrategiesback to summary
private final transient Set<NaturalIdDataAccess> accessStrategies
cacheHitCountback to summary
private final AtomicLong cacheHitCount
cacheMissCountback to summary
private final AtomicLong cacheMissCount
cachePutCountback to summary
private final AtomicLong cachePutCount
executionCountback to summary
private final AtomicLong executionCount
executionMaxTimeback to summary
private final AtomicLong executionMaxTime
executionMinTimeback to summary
private final AtomicLong executionMinTime
readLockback to summary
private final Lock readLock
regionNameback to summary
private final String regionName
totalExecutionTimeback to summary
private final AtomicLong totalExecutionTime
writeLockback to summary
private final Lock writeLock

Constructor Detail

DeprecatedNaturalIdCacheStatisticsImplback to summary
pack-priv DeprecatedNaturalIdCacheStatisticsImpl(String regionName, Set<NaturalIdDataAccess> accessStrategies)

Method Detail

getElementCountInMemoryback to summary
public long getElementCountInMemory()

Implements org.hibernate.stat.NaturalIdCacheStatistics.getElementCountInMemory.

Annotations
@Override
getElementCountOnDiskback to summary
public long getElementCountOnDisk()

Implements org.hibernate.stat.NaturalIdCacheStatistics.getElementCountOnDisk.

Annotations
@Override
getExecutionAvgTimeback to summary
public long getExecutionAvgTime()

Implements org.hibernate.stat.NaturalIdCacheStatistics.getExecutionAvgTime.

average time in ms taken by the execution of this query onto the DB

Annotations
@Override
getExecutionCountback to summary
public long getExecutionCount()

Implements org.hibernate.stat.NaturalIdCacheStatistics.getExecutionCount.

queries executed to the DB

Annotations
@Override
getExecutionMaxTimeback to summary
public long getExecutionMaxTime()

Implements org.hibernate.stat.NaturalIdCacheStatistics.getExecutionMaxTime.

max time in ms taken by the execution of this query onto the DB

Annotations
@Override
getExecutionMinTimeback to summary
public long getExecutionMinTime()

Implements org.hibernate.stat.NaturalIdCacheStatistics.getExecutionMinTime.

min time in ms taken by the execution of this query onto the DB

Annotations
@Override
getHitCountback to summary
public long getHitCount()

Implements org.hibernate.stat.NaturalIdCacheStatistics.getHitCount.

Annotations
@Override
getMissCountback to summary
public long getMissCount()

Implements org.hibernate.stat.NaturalIdCacheStatistics.getMissCount.

Annotations
@Override
getPutCountback to summary
public long getPutCount()

Implements org.hibernate.stat.NaturalIdCacheStatistics.getPutCount.

Annotations
@Override
getSizeInMemoryback to summary
public long getSizeInMemory()

Implements org.hibernate.stat.NaturalIdCacheStatistics.getSizeInMemory.

Annotations
@Override
incrementHitCountback to summary
pack-priv void incrementHitCount()
incrementMissCountback to summary
pack-priv void incrementMissCount()
incrementPutCountback to summary
pack-priv void incrementPutCount()
queryExecutedback to summary
pack-priv void queryExecuted(long time)
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