public final class Autotime extends Object
Constructor and Description |
---|
Autotime()
Create an instance that automatically time requests with no percentiles.
|
Autotime(boolean enabled,
boolean percentilesHistogram,
List<Double> percentiles)
Create an instance with the specified settings.
|
Modifier and Type | Method and Description |
---|---|
static Autotime |
disabled()
Create an instance that disable auto-timed requests.
|
double[] |
getPercentiles() |
boolean |
isEnabled() |
boolean |
isPercentilesHistogram() |
void |
setEnabled(boolean enabled) |
void |
setPercentiles(double[] percentiles) |
void |
setPercentilesHistogram(boolean percentilesHistogram) |
public Autotime()
public Autotime(boolean enabled, boolean percentilesHistogram, List<Double> percentiles)
enabled
- whether requests should be automatically timedpercentilesHistogram
- whether percentile histograms should be publishedpercentiles
- computed non-aggregable percentiles to publish (can be
null
)public static Autotime disabled()
public boolean isEnabled()
public void setEnabled(boolean enabled)
public boolean isPercentilesHistogram()
public void setPercentilesHistogram(boolean percentilesHistogram)
public double[] getPercentiles()
public void setPercentiles(double[] percentiles)
Copyright © 2019 Pivotal Software, Inc.. All rights reserved.