@PublicSpi public interface StatisticsCollector
DataLoader
operationsModifier and Type | Method and Description |
---|---|
Statistics |
getStatistics() |
long |
incrementBatchLoadCountBy(long delta)
|
default <K> long |
incrementBatchLoadCountBy(long delta,
IncrementBatchLoadCountByStatisticsContext<K> context)
Called to increment the number of batch loads
|
long |
incrementBatchLoadExceptionCount()
|
default <K> long |
incrementBatchLoadExceptionCount(IncrementBatchLoadExceptionCountStatisticsContext<K> context)
Called to increment the number of batch loads exceptions
|
long |
incrementCacheHitCount()
Deprecated.
|
default <K> long |
incrementCacheHitCount(IncrementCacheHitCountStatisticsContext<K> context)
Called to increment the number of cache hits
|
long |
incrementLoadCount()
Deprecated.
|
default <K> long |
incrementLoadCount(IncrementLoadCountStatisticsContext<K> context)
Called to increment the number of loads
|
long |
incrementLoadErrorCount()
|
default <K> long |
incrementLoadErrorCount(IncrementLoadErrorCountStatisticsContext<K> context)
Called to increment the number of loads that resulted in an object deemed in error
|
default <K> long incrementLoadCount(IncrementLoadCountStatisticsContext<K> context)
K
- the class of the key in the data loadercontext
- the context containing metadata of the data loader invocation@Deprecated long incrementLoadCount()
incrementLoadCount(IncrementLoadCountStatisticsContext)
default <K> long incrementLoadErrorCount(IncrementLoadErrorCountStatisticsContext<K> context)
K
- the class of the key in the data loadercontext
- the context containing metadata of the data loader invocation@Deprecated long incrementLoadErrorCount()
default <K> long incrementBatchLoadCountBy(long delta, IncrementBatchLoadCountByStatisticsContext<K> context)
K
- the class of the key in the data loaderdelta
- how much to add to the countcontext
- the context containing metadata of the data loader invocation@Deprecated long incrementBatchLoadCountBy(long delta)
delta
- how much to add to the countdefault <K> long incrementBatchLoadExceptionCount(IncrementBatchLoadExceptionCountStatisticsContext<K> context)
K
- the class of the key in the data loadercontext
- the context containing metadata of the data loader invocation@Deprecated long incrementBatchLoadExceptionCount()
default <K> long incrementCacheHitCount(IncrementCacheHitCountStatisticsContext<K> context)
K
- the class of the key in the data loadercontext
- the context containing metadata of the data loader invocation@Deprecated long incrementCacheHitCount()
incrementCacheHitCount(IncrementCacheHitCountStatisticsContext)
Statistics getStatistics()