|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.kafka.common.metrics.stats.Total
public class Total
An un-windowed cumulative total maintained over all time.
Constructor Summary | |
---|---|
Total()
|
|
Total(double value)
|
Method Summary | |
---|---|
double |
measure(MetricConfig config,
long now)
Measure this quantity and return the result as a double |
void |
record(MetricConfig config,
double value,
long now)
Record the given value |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Total()
public Total(double value)
Method Detail |
---|
public void record(MetricConfig config, double value, long now)
Stat
record
in interface Stat
config
- The configuration to use for this metricvalue
- The value to recordnow
- The POSIX time in milliseconds this value occurredpublic double measure(MetricConfig config, long now)
Measurable
measure
in interface Measurable
config
- The configuration for this metricnow
- The POSIX time in milliseconds the measurement is being taken
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |