Package com.codahale.metrics
Class Histogram
- java.lang.Object
-
- com.codahale.metrics.Histogram
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description longgetCount()Returns the number of values recorded.SnapshotgetSnapshot()Returns a snapshot of the values.voidupdate(int value)Adds a recorded value.voidupdate(long value)Adds a recorded value.
-
-
-
Method Detail
-
update
public void update(int value)
Adds a recorded value.- Parameters:
value- the length of the value
-
update
public void update(long value)
Adds a recorded value.- Parameters:
value- the length of the value
-
getCount
public long getCount()
Returns the number of values recorded.
-
getSnapshot
public Snapshot getSnapshot()
Description copied from interface:SamplingReturns a snapshot of the values.- Specified by:
getSnapshotin interfaceSampling- Returns:
- a snapshot of the values
-
-