public abstract class Counter


Useful to emit counters into a Trace.

Summary

Public constructors

Public methods

abstract @NonNull String
abstract void
setValue(double value)

Emits a Double value into the trace for the provided name.

abstract void
setValue(long value)

Emits a Long value into the trace for the provided name.

Public constructors

Counter

Added in 2.0.0-alpha01
public Counter()

Public methods

name

Added in 2.0.0-alpha01
public abstract @NonNull String name()

setValue

Added in 2.0.0-alpha01
public abstract void setValue(double value)

Emits a Double value into the trace for the provided name.

setValue

Added in 2.0.0-alpha01
public abstract void setValue(long value)

Emits a Long value into the trace for the provided name.