public final class LatencyBuckets extends Object
LatencyType).
Latency bucket counts are cumulative and not reset on each metrics snapshot interval.| Constructor and Description |
|---|
LatencyBuckets(int latencyColumns,
int latencyShift)
Initialize latency buckets.
|
| Modifier and Type | Method and Description |
|---|---|
void |
add(long elapsed)
Increment count of bucket corresponding to the elapsed time in nanoseconds.
|
long |
getBucket(int i)
Return cumulative count of a bucket.
|
int |
getMax()
Return number of buckets.
|
public LatencyBuckets(int latencyColumns,
int latencyShift)
latencyColumns - number of latency bucketslatencyShift - power of 2 multiple between each range bucket in latency histograms starting at bucket 3.
The first 2 buckets are "<=1ms" and ">1ms".Copyright © 2012–2024 Aerospike, Inc. All rights reserved.