Package org.infinispan.stats.container
Interface ExtendedStatisticsContainer
-
- All Known Implementing Classes:
BaseExtendedStatisticsContainer,LocalExtendedStatisticsContainer,RemoteExtendedStatisticsContainer
public interface ExtendedStatisticsContainerContains the statistic's values and allows to perform modifications on them.- Since:
- 6.0
- Author:
- Pedro Ruivo
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidaddValue(ExtendedStatistic statistic, double value)it adds the value to the statistic.doublegetValue(ExtendedStatistic statistic)voidmergeTo(ConcurrentGlobalContainer globalContainer)it merges inthisthe statistic's values inother.
-
-
-
Method Detail
-
addValue
void addValue(ExtendedStatistic statistic, double value)
it adds the value to the statistic. If the statistic does not exist in this container, it fails silently
-
getValue
double getValue(ExtendedStatistic statistic) throws ExtendedStatisticNotFoundException
- Returns:
- the current value of the statistic
- Throws:
ExtendedStatisticNotFoundException- if the statistic was not found in this container
-
mergeTo
void mergeTo(ConcurrentGlobalContainer globalContainer)
it merges inthisthe statistic's values inother. If for some reason theothercannot be merged, it fails silently
-
-