public interface CacheStatisticsSPI extends CacheStatistics
Modifier and Type | Method and Description |
---|---|
void |
disable()
Disable statistics collection.
|
void |
enable()
Enable statistics collection.
|
void |
newGet(Class<?> cls,
boolean hit)
Record a new cache get.
|
void |
newPut(Class<?> cls)
Record a new cache put.
|
classNames, getHitCount, getHitCount, getHitCount, getReadCount, getReadCount, getReadCount, getTotalHitCount, getTotalHitCount, getTotalHitCount, getTotalReadCount, getTotalReadCount, getTotalReadCount, getTotalWriteCount, getTotalWriteCount, getTotalWriteCount, getWriteCount, getWriteCount, getWriteCount, isEnabled, reset, since, start, toMap
void newGet(Class<?> cls, boolean hit)
cls
- - The class describing the type that is contained in the cache.hit
- - true for a cache hit, false otherwisevoid newPut(Class<?> cls)
cls
- - The class describing the type that is contained in the cache.void enable()
void disable()
Copyright © 2006–2022 Apache Software Foundation. All rights reserved.