Package com.aerospike.client.metrics
Class LatencyBuckets
java.lang.Object
com.aerospike.client.metrics.LatencyBuckets
Latency buckets for a command group (See
LatencyType).
Latency bucket counts are cumulative and not reset on each metrics snapshot interval.-
Constructor Summary
ConstructorsConstructorDescriptionLatencyBuckets(int latencyColumns, int latencyShift) Initialize latency buckets. -
Method Summary
-
Constructor Details
-
LatencyBuckets
public LatencyBuckets(int latencyColumns, int latencyShift) Initialize latency buckets.- Parameters:
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".
-
-
Method Details
-
getMax
public int getMax()Return number of buckets. -
getBucket
public long getBucket(int i) Return cumulative count of a bucket. -
add
public void add(long elapsed) Increment count of bucket corresponding to the elapsed time in nanoseconds.
-