public class SuppliedValueStatistic<T extends Serializable> extends Object implements ValueStatistic<T>
ValueStatistic with a specific StatisticType
which value is given by a provided Supplier| Modifier and Type | Method and Description |
|---|---|
static <T extends Number> |
counter(Supplier<T> supplier) |
static <T extends Number> |
gauge(Supplier<T> supplier) |
static <T extends Number> |
rate(Supplier<T> supplier) |
static <T extends Number> |
ratio(Supplier<T> supplier) |
static <T extends Serializable> |
supply(StatisticType type,
Supplier<T> supplier) |
static <T extends Table> |
table(Supplier<T> supplier) |
StatisticType |
type() |
T |
value() |
public static <T extends Serializable> ValueStatistic<T> supply(StatisticType type, Supplier<T> supplier)
public static <T extends Number> ValueStatistic<T> gauge(Supplier<T> supplier)
public static <T extends Number> ValueStatistic<T> counter(Supplier<T> supplier)
public static <T extends Number> ValueStatistic<T> rate(Supplier<T> supplier)
public static <T extends Number> ValueStatistic<T> ratio(Supplier<T> supplier)
public static <T extends Table> ValueStatistic<T> table(Supplier<T> supplier)
public T value()
value in interface ValueStatistic<T extends Serializable>public StatisticType type()
type in interface ValueStatistic<T extends Serializable>Copyright © 2018. All rights reserved.