Package org.terracotta.statistics
Interface OperationStatistic<T extends Enum<T>>
- All Superinterfaces:
OperationObserver<T>,SourceStatistic<ChainedOperationObserver<? super T>>
- All Known Implementing Classes:
AbstractOperationStatistic,GeneralOperationStatistic,MappedOperationStatistic,StatisticMapper,ZeroOperationStatistic
public interface OperationStatistic<T extends Enum<T>>
extends OperationObserver<T>, SourceStatistic<ChainedOperationObserver<? super T>>
-
Method Summary
Modifier and TypeMethodDescriptionlongReturn the count of operations with the given type.default ValueStatistic<Long>default ValueStatistic<Long>Return aValueStatisticreturning the count for the given result.longsum()longtype()Methods inherited from interface org.terracotta.statistics.observer.OperationObserver
begin, endMethods inherited from interface org.terracotta.statistics.SourceStatistic
addDerivedStatistic, getDerivedStatistics, removeDerivedStatistic
-
Method Details
-
type
-
statistic
Return aValueStatisticreturning the count for the given result.- Parameters:
result- the result of interest- Returns:
- a
ValueStatisticinstance
-
statistic
-
count
Return the count of operations with the given type.- Parameters:
type- the result type- Returns:
- the operation count
-
sum
-
sum
long sum()
-