Class LatencyBuckets

java.lang.Object
com.aerospike.client.metrics.LatencyBuckets

public final class LatencyBuckets extends Object
Latency buckets for a command group (See LatencyType). Latency bucket counts are cumulative and not reset on each metrics snapshot interval.
  • Constructor Summary

    Constructors
    Constructor
    Description
    LatencyBuckets(int latencyColumns, int latencyShift)
    Initialize latency buckets.
  • Method Summary

    Modifier and Type
    Method
    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
    Return number of buckets.

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • LatencyBuckets

      public LatencyBuckets(int latencyColumns, int latencyShift)
      Initialize latency buckets.
      Parameters:
      latencyColumns - number of latency buckets
      latencyShift - 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.