public class AssignableMetric extends Object implements IMetric
Constructor and Description |
---|
AssignableMetric(Object value) |
Modifier and Type | Method and Description |
---|---|
Object |
getValueAndReset()
Get value and reset.
|
void |
setValue(Object value) |
public AssignableMetric(Object value)
public void setValue(Object value)
public Object getValueAndReset()
IMetric
Get value and reset.
getValueAndReset
in interface IMetric
IMetricsConsumer#handleDataPoints(org.apache.storm.metric.api.IMetricsConsumer
.TaskInfo,
java.util.Collection)
. If null is returned nothing will be sent. If this value can be reset, like with a counter, a side effect of calling this should be that the value is reset.Copyright © 2022 The Apache Software Foundation. All rights reserved.