Package org.infinispan.stats.container
Interface ExtendedStatisticsContainer
-
- All Known Implementing Classes:
BaseExtendedStatisticsContainer
,LocalExtendedStatisticsContainer
,RemoteExtendedStatisticsContainer
public interface ExtendedStatisticsContainer
Contains 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 void
addValue(ExtendedStatistic statistic, double value)
it adds the value to the statistic.double
getValue(ExtendedStatistic statistic)
void
mergeTo(ConcurrentGlobalContainer globalContainer)
it merges inthis
the 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 inthis
the statistic's values inother
. If for some reason theother
cannot be merged, it fails silently
-
-