Package com.helger.commons.statistics
Interface IStatisticsHandlerKeyed
-
- All Superinterfaces:
IStatisticsHandler
- All Known Subinterfaces:
IMutableStatisticsHandlerKeyedCounter,IMutableStatisticsHandlerKeyedSize,IMutableStatisticsHandlerKeyedTimer,IStatisticsHandlerKeyedCounter,IStatisticsHandlerKeyedNumeric,IStatisticsHandlerKeyedSize,IStatisticsHandlerKeyedTimer
- All Known Implementing Classes:
AbstractStatisticsHandlerKeyedNumeric,StatisticsHandlerKeyedCounter,StatisticsHandlerKeyedSize,StatisticsHandlerKeyedTimer
public interface IStatisticsHandlerKeyed extends IStatisticsHandler
Base interface for keyed statistic handlers- Author:
- Philip Helger
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ICommonsSet<String>getAllKeys()intgetInvocationCount(String sKey)Get the invocation count for a single key.-
Methods inherited from interface com.helger.commons.statistics.IStatisticsHandler
getInvocationCount
-
-
-
-
Method Detail
-
getAllKeys
@Nonnull @ReturnsMutableCopy ICommonsSet<String> getAllKeys()
- Returns:
- A collection of all keys that have a value assigned. Never
null.
-
getInvocationCount
@CheckForSigned int getInvocationCount(@Nullable String sKey)
Get the invocation count for a single key.- Parameters:
sKey- The key to be queried. May benull.- Returns:
- The invocation count for a single key or
CGlobal.ILLEGAL_UINTif no such key exists
-
-