public static class Histogram.Builder extends SimpleCollector.Builder<Histogram.Builder,Histogram>
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
Histogram.Builder |
buckets(double... buckets)
Set the upper bounds of buckets for the histogram.
|
Histogram |
create()
Return the constructed collector.
|
Histogram.Builder |
exponentialBuckets(double start,
double factor,
int count)
Set the upper bounds of buckets for the histogram with an exponential sequence.
|
Histogram.Builder |
linearBuckets(double start,
double width,
int count)
Set the upper bounds of buckets for the histogram with a linear sequence.
|
help, labelNames, name, namespace, register, register, subsystem
public Builder()
public Histogram create()
SimpleCollector.Builder
Abstract due to generics limitations.
create
in class SimpleCollector.Builder<Histogram.Builder,Histogram>
public Histogram.Builder buckets(double... buckets)
public Histogram.Builder linearBuckets(double start, double width, int count)
public Histogram.Builder exponentialBuckets(double start, double factor, int count)
Copyright © 2018. All Rights Reserved.