public class SimpleStatisticsCollector extends java.lang.Object implements StatisticsCollector
AtomicLongs to collect
statisticsStatisticsCollector| Constructor and Description |
|---|
SimpleStatisticsCollector() |
| Modifier and Type | Method and Description |
|---|---|
Statistics |
getStatistics() |
long |
incrementBatchLoadCountBy(long delta)
Called to increment the number of batch loads
|
long |
incrementBatchLoadExceptionCount()
Called to increment the number of batch loads exceptions
|
long |
incrementCacheHitCount()
Called to increment the number of cache hits
|
long |
incrementLoadCount()
Called to increment the number of loads
|
long |
incrementLoadErrorCount()
Called to increment the number of loads that resulted in an object deemed in error
|
java.lang.String |
toString() |
public long incrementLoadCount()
StatisticsCollectorincrementLoadCount in interface StatisticsCollectorpublic long incrementBatchLoadCountBy(long delta)
StatisticsCollectorincrementBatchLoadCountBy in interface StatisticsCollectordelta - how much to add to the countpublic long incrementCacheHitCount()
StatisticsCollectorincrementCacheHitCount in interface StatisticsCollectorpublic long incrementLoadErrorCount()
StatisticsCollectorincrementLoadErrorCount in interface StatisticsCollectorpublic long incrementBatchLoadExceptionCount()
StatisticsCollectorincrementBatchLoadExceptionCount in interface StatisticsCollectorpublic Statistics getStatistics()
getStatistics in interface StatisticsCollectorpublic java.lang.String toString()
toString in class java.lang.Object