use of org.apache.samza.table.utils.TableMetrics in project samza by apache.
the class BaseReadWriteUpdateTable method init.
@Override
public void init(Context context) {
MetricsConfig metricsConfig = new MetricsConfig(context.getJobContext().getConfig());
clock = metricsConfig.getMetricsTimerEnabled() ? () -> System.nanoTime() : () -> 0L;
metrics = new TableMetrics(context, this, tableId);
}
Aggregations