public class DependantMutableMetrics extends MutableMetrics
annotations, counts, durationNs, id, name, nested| Constructor and Description |
|---|
DependantMutableMetrics(String id,
String name,
DependantMutableMetrics upStreamMetrics) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
copyMembers(ImmutableMetrics clone) |
long |
getDuration(TimeUnit unit)
Returns the actual duration taken by this Metrics by subtracting the duration taken by the upstream Step, if
one exists.
|
addNested, aggregate, clone, getImmutableClone, getNested, incrementCount, setAnnotation, setCount, setDuration, start, stopgetAnnotation, getAnnotations, getCount, getCounts, getId, getName, getNested, toStringpublic DependantMutableMetrics(String id, String name, DependantMutableMetrics upStreamMetrics)
public long getDuration(TimeUnit unit)
getDuration in interface MetricsgetDuration in class ImmutableMetricsprotected void copyMembers(ImmutableMetrics clone)
copyMembers in class MutableMetricsCopyright © 2013–2017 Apache Software Foundation. All rights reserved.