@Value.Immutable
public interface CounterResult
Counter
that carries its result.Modifier and Type | Method and Description |
---|---|
static CounterResult |
fromCounter(Counter counter) |
static CounterResult |
of(MetricsContext.Unit unit,
long value) |
MetricsContext.Unit |
unit() |
long |
value() |
MetricsContext.Unit unit()
long value()
static CounterResult fromCounter(Counter counter)
static CounterResult of(MetricsContext.Unit unit, long value)