Package com.helger.commons.statistics
Class StatisticsHandlerCache
java.lang.Object
com.helger.commons.statistics.StatisticsHandlerCache
- All Implemented Interfaces:
IMutableStatisticsHandlerCache,IStatisticsHandler,IStatisticsHandlerCache
@ThreadSafe
public class StatisticsHandlerCache
extends Object
implements IMutableStatisticsHandlerCache
Default implementation of
IMutableStatisticsHandlerCache- Author:
- Philip Helger
-
Constructor Details
-
StatisticsHandlerCache
public StatisticsHandlerCache()
-
-
Method Details
-
getInvocationCount
- Specified by:
getInvocationCountin interfaceIStatisticsHandler- Returns:
- The number of times this statistics hander was invoked.
-
cacheHit
public void cacheHit()Description copied from interface:IMutableStatisticsHandlerCacheCalled when a cache hit occurred.- Specified by:
cacheHitin interfaceIMutableStatisticsHandlerCache
-
cacheMiss
public void cacheMiss()Description copied from interface:IMutableStatisticsHandlerCacheCalled when a cache miss occurred.- Specified by:
cacheMissin interfaceIMutableStatisticsHandlerCache
-
getHits
- Specified by:
getHitsin interfaceIStatisticsHandlerCache
-
getMisses
- Specified by:
getMissesin interfaceIStatisticsHandlerCache
-