public class DeltaTracker extends Object
| Modifier and Type | Class and Description |
|---|---|
static interface |
DeltaTracker.MetricSupplier |
| Constructor and Description |
|---|
DeltaTracker() |
DeltaTracker(DeltaTracker.MetricSupplier supplier) |
| Modifier and Type | Method and Description |
|---|---|
Long |
getDelta(String name,
long count)
Calculates the delta.
|
Long |
peekDelta(String name,
long count)
Gets the delta without updating the internal data store
|
public DeltaTracker()
public DeltaTracker(DeltaTracker.MetricSupplier supplier)
public Long peekDelta(String name, long count)
public Long getDelta(String name, long count)
name - the name of the countercount - the counter valueCopyright © 2017. All Rights Reserved.