Interface ExtendedStatistics.Operation<T extends java.lang.Enum<T>>
-
- Type Parameters:
T- the generic type
- Enclosing interface:
- ExtendedStatistics
public static interface ExtendedStatistics.Operation<T extends java.lang.Enum<T>>The Interface Operation.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ExtendedStatistics.Resultcomponent(T result)Component.ExtendedStatistics.Resultcompound(java.util.Set<T> results)Compound.intgetHistorySampleSize()Gets the history sample size.longgetHistorySampleTime(java.util.concurrent.TimeUnit unit)Gets the history sample time.longgetWindowSize(java.util.concurrent.TimeUnit unit)Gets the window size.booleanisAlwaysOn()Checks if is always on.ExtendedStatistics.Statistic<java.lang.Double>ratioOf(java.util.Set<T> numerator, java.util.Set<T> denomiator)Ratio of.voidsetAlwaysOn(boolean enable)Sets the always on.voidsetHistory(int samples, long time, java.util.concurrent.TimeUnit unit)Sets the history.voidsetWindow(long time, java.util.concurrent.TimeUnit unit)Sets the window.java.lang.Class<T>type()Type.
-
-
-
Method Detail
-
type
java.lang.Class<T> type()
Type.- Returns:
- the class
-
component
ExtendedStatistics.Result component(T result)
Component.- Parameters:
result- the result- Returns:
- the result
-
compound
ExtendedStatistics.Result compound(java.util.Set<T> results)
Compound.- Parameters:
results- the results- Returns:
- the result
-
ratioOf
ExtendedStatistics.Statistic<java.lang.Double> ratioOf(java.util.Set<T> numerator, java.util.Set<T> denomiator)
Ratio of.- Parameters:
numerator- the numeratordenomiator- the denomiator- Returns:
- the statistic
-
setAlwaysOn
void setAlwaysOn(boolean enable)
Sets the always on.- Parameters:
enable- the new always on
-
isAlwaysOn
boolean isAlwaysOn()
Checks if is always on.- Returns:
- true, if is always on
-
setWindow
void setWindow(long time, java.util.concurrent.TimeUnit unit)Sets the window.- Parameters:
time- the timeunit- the unit
-
setHistory
void setHistory(int samples, long time, java.util.concurrent.TimeUnit unit)Sets the history.- Parameters:
samples- the samplestime- the timeunit- the unit
-
getWindowSize
long getWindowSize(java.util.concurrent.TimeUnit unit)
Gets the window size.- Parameters:
unit- the unit- Returns:
- the window size
-
getHistorySampleSize
int getHistorySampleSize()
Gets the history sample size.- Returns:
- the history sample size
-
getHistorySampleTime
long getHistorySampleTime(java.util.concurrent.TimeUnit unit)
Gets the history sample time.- Parameters:
unit- the unit- Returns:
- the history sample time
-
-