Package com.linkedin.venice.stats
Interface StatsSupplier<T extends AbstractVeniceStats>
-
public interface StatsSupplier<T extends AbstractVeniceStats>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description T
get(io.tehuti.metrics.MetricsRepository metricsRepository, java.lang.String storeName)
Legacy function, for implementations that do not use total stats in their constructor.default T
get(io.tehuti.metrics.MetricsRepository metricsRepository, java.lang.String storeName, T totalStats)
This is the function that gets called byAbstractVeniceAggStats
, and concrete classes can optionally implement it in order to be provided with the total stats instance.
-
-
-
Method Detail
-
get
T get(io.tehuti.metrics.MetricsRepository metricsRepository, java.lang.String storeName)
Legacy function, for implementations that do not use total stats in their constructor.- See Also:
which is the only caller.
-
get
default T get(io.tehuti.metrics.MetricsRepository metricsRepository, java.lang.String storeName, T totalStats)
This is the function that gets called byAbstractVeniceAggStats
, and concrete classes can optionally implement it in order to be provided with the total stats instance.
-
-