public interface OperationStatistic<T extends java.lang.Enum<T>> extends OperationObserver<T>, SourceStatistic<ChainedOperationObserver<? super T>>
Modifier and Type | Method and Description |
---|---|
long |
count(T type)
Return the count of operations with the given type.
|
default ValueStatistic<java.lang.Long> |
statistic(java.util.Set<T> results) |
default ValueStatistic<java.lang.Long> |
statistic(T result)
Return a
ValueStatistic returning the count for the given result. |
long |
sum() |
long |
sum(java.util.Set<T> types) |
java.lang.Class<T> |
type() |
begin, end
addDerivedStatistic, getDerivedStatistics, removeDerivedStatistic
java.lang.Class<T> type()
default ValueStatistic<java.lang.Long> statistic(T result)
ValueStatistic
returning the count for the given result.result
- the result of interestValueStatistic
instancedefault ValueStatistic<java.lang.Long> statistic(java.util.Set<T> results)
long count(T type)
type
- the result typelong sum(java.util.Set<T> types)
long sum()