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, stop
getAnnotation, getAnnotations, getCount, getCounts, getId, getName, getNested, toString
public DependantMutableMetrics(String id, String name, DependantMutableMetrics upStreamMetrics)
public long getDuration(TimeUnit unit)
getDuration
in interface Metrics
getDuration
in class ImmutableMetrics
protected void copyMembers(ImmutableMetrics clone)
copyMembers
in class MutableMetrics
Copyright © 2013–2017 Apache Software Foundation. All rights reserved.