@Value.Immutable
public abstract class CommitMetrics
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ATTEMPTS |
static java.lang.String |
TOTAL_DURATION |
Constructor and Description |
---|
CommitMetrics() |
Modifier and Type | Method and Description |
---|---|
Counter |
attempts() |
abstract MetricsContext |
metricsContext() |
static CommitMetrics |
noop() |
static CommitMetrics |
of(MetricsContext metricsContext) |
Timer |
totalDuration() |
public static final java.lang.String TOTAL_DURATION
public static final java.lang.String ATTEMPTS
public static CommitMetrics noop()
public abstract MetricsContext metricsContext()
@Value.Derived public Timer totalDuration()
@Value.Derived public Counter attempts()
public static CommitMetrics of(MetricsContext metricsContext)